|
| 1 | +--- raygui_buggy/src/raygui.h 2025-08-25 20:37:15.268489729 +0100 |
| 2 | ++++ raygui/src/raygui.h 2025-08-25 20:38:02.052486927 +0100 |
| 3 | +@@ -696,8 +696,8 @@ |
| 4 | + RAYGUIAPI Font GuiGetFont(void); // Get gui custom font (global state) |
| 5 | + |
| 6 | + // Style set/get functions |
| 7 | +-RAYGUIAPI void GuiSetStyle(int control, int property, int value); // Set one style property |
| 8 | +-RAYGUIAPI int GuiGetStyle(int control, int property); // Get one style property |
| 9 | ++RAYGUIAPI void GuiSetStyle(int control, int property, unsigned int value); // Set one style property |
| 10 | ++RAYGUIAPI unsigned int GuiGetStyle(int control, int property); // Get one style property |
| 11 | + |
| 12 | + // Styles loading functions |
| 13 | + RAYGUIAPI void GuiLoadStyle(const char *fileName); // Load style file over global style variable (.rgs) |
| 14 | +@@ -1557,7 +1557,7 @@ |
| 15 | + } |
| 16 | + |
| 17 | + // Set control style property value |
| 18 | +-void GuiSetStyle(int control, int property, int value) |
| 19 | ++void GuiSetStyle(int control, int property, int unsigned value) |
| 20 | + { |
| 21 | + if (!guiStyleLoaded) GuiLoadStyleDefault(); |
| 22 | + guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property] = value; |
| 23 | +@@ -1570,7 +1570,7 @@ |
| 24 | + } |
| 25 | + |
| 26 | + // Get control style property value |
| 27 | +-int GuiGetStyle(int control, int property) |
| 28 | ++unsigned int GuiGetStyle(int control, int property) |
| 29 | + { |
| 30 | + if (!guiStyleLoaded) GuiLoadStyleDefault(); |
| 31 | + return guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property]; |
0 commit comments