mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-06 14:19:19 -05:00
Corrected issue on style loading
This commit is contained in:
3
raygui.h
3
raygui.h
@ -1424,6 +1424,8 @@ RAYGUIDEF void LoadGuiStyle(const char *fileName)
|
|||||||
|
|
||||||
FILE *styleFile = fopen(fileName, "rt");
|
FILE *styleFile = fopen(fileName, "rt");
|
||||||
|
|
||||||
|
if (styleFile != NULL)
|
||||||
|
{
|
||||||
while (!feof(styleFile))
|
while (!feof(styleFile))
|
||||||
{
|
{
|
||||||
fscanf(styleFile, "%s %i\n", styleProp[counter].id, &styleProp[counter].value);
|
fscanf(styleFile, "%s %i\n", styleProp[counter].id, &styleProp[counter].value);
|
||||||
@ -1443,6 +1445,7 @@ RAYGUIDEF void LoadGuiStyle(const char *fileName)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RAYGUI_FREE(styleProp);
|
RAYGUI_FREE(styleProp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user