mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-03 04:39:18 -05:00
Review issue sscanf() and hex value #78
This commit is contained in:
@ -2943,7 +2943,7 @@ void GuiLoadStyle(const char *fileName)
|
|||||||
{
|
{
|
||||||
int controlId = 0;
|
int controlId = 0;
|
||||||
int propertyId = 0;
|
int propertyId = 0;
|
||||||
int propertyValue = 0;
|
unsigned int propertyValue = 0;
|
||||||
|
|
||||||
while (!feof(rgsFile))
|
while (!feof(rgsFile))
|
||||||
{
|
{
|
||||||
@ -2955,7 +2955,7 @@ void GuiLoadStyle(const char *fileName)
|
|||||||
|
|
||||||
sscanf(buffer, "p %d %d 0x%x", &controlId, &propertyId, &propertyValue);
|
sscanf(buffer, "p %d %d 0x%x", &controlId, &propertyId, &propertyValue);
|
||||||
|
|
||||||
GuiSetStyle(controlId, propertyId, propertyValue);
|
GuiSetStyle(controlId, propertyId, (int)propertyValue);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
case 'f':
|
case 'f':
|
||||||
|
|||||||
Reference in New Issue
Block a user