mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
REVIEWED: Load default style before loading a custom style https://github.com/raysan5/rguistyler/issues/8
Make sure default style has been loaded to avoid overwriting new style properties due to the lazy initialization of default style.
This commit is contained in:
@ -3937,6 +3937,7 @@ void GuiLoadStyle(const char *fileName)
|
||||
#define MAX_LINE_BUFFER_SIZE 256
|
||||
|
||||
bool tryBinary = false;
|
||||
if (!guiStyleLoaded) GuiLoadStyleDefault();
|
||||
|
||||
// Try reading the files as text file first
|
||||
FILE *rgsFile = fopen(fileName, "rt");
|
||||
|
||||
Reference in New Issue
Block a user