- [FIX] Fallaba al carregar fonts amb format de final de linea de Windows

This commit is contained in:
2026-03-22 17:39:21 +01:00
parent 89496fb8fb
commit 6fb31a3ae5
2 changed files with 3 additions and 1 deletions

View File

@@ -435,6 +435,7 @@ uint8_t loadfont_from_buffer(const char* buffer, uint8_t index, const char* name
memcpy(line, ptr, len);
line[len] = '\0';
ptr += (ptr[len] == '\n') ? len + 1 : len; // Advance pointer
if (len > 0 && line[len - 1] == '\r') line[len - 1] = '\0';
if (strncmp(line, "bitmap=", 7) != 0) return false; // Parse first line
@@ -453,6 +454,7 @@ uint8_t loadfont_from_buffer(const char* buffer, uint8_t index, const char* name
memcpy(line, ptr, len);
line[len] = '\0';
ptr += (ptr[len] == '\n') ? len + 1 : len; // Advance pointer
if (len > 0 && line[len - 1] == '\r') line[len - 1] = '\0';
// Remove comments
char* hash = strchr(line, '#');

View File

@@ -1,3 +1,3 @@
#pragma once
#define MINI_VERSION "1.4.8"
#define MINI_VERSION "1.4.9"