From ed545e4d7b21cda7d5df6c7ce40816c6ba829193 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 11 Sep 2023 11:00:29 +0200 Subject: [PATCH] Update raygui.h --- src/raygui.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/raygui.h b/src/raygui.h index 9fa3d2d..f4bf0d8 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -4418,6 +4418,8 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize) // Load font recs data int recsDataSize = font.glyphCount*sizeof(Rectangle); int recsDataCompressedSize = 0; + + // WARNING: Version 400 adds the compression size parameter if (version >= 400) { // RGS files version 400 support compressed recs data @@ -4455,6 +4457,8 @@ static void GuiLoadStyleFromMemory(const unsigned char *fileData, int dataSize) // Load font glyphs info data int glyphsDataSize = font.glyphCount*16; // 16 bytes data per glyph int glyphsDataCompressedSize = 0; + + // WARNING: Version 400 adds the compression size parameter if (version >= 400) { // RGS files version 400 support compressed glyphs data