From 79db2c75bcb918167027a5e1e27e1f7d271475a9 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 25 Aug 2025 20:50:38 +0100 Subject: [PATCH 1/3] use docker to build linux --- .cirrus.yml | 2 ++ .github/workflows/build.yml | 20 ++++++++++++++++++++ raygui.h.patch | 31 +++++++++++++++++++++++++++++++ raylib/raygui.h.modified | 4 ++-- tests/test_raygui_style.py | 20 ++++++++++++++++++++ 5 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 raygui.h.patch create mode 100644 tests/test_raygui_style.py diff --git a/.cirrus.yml b/.cirrus.yml index 498dbb37..0b9eb85b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -44,6 +44,7 @@ pi_task: - make -j2 - cp raylib/libraylib.a /usr/local/lib/libraylib.a build_script: + - patch -p0 Date: Tue, 26 Aug 2025 18:17:44 +0100 Subject: [PATCH 2/3] forgot diff file --- raygui.h.diff | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 raygui.h.diff diff --git a/raygui.h.diff b/raygui.h.diff new file mode 100644 index 00000000..25c09a43 --- /dev/null +++ b/raygui.h.diff @@ -0,0 +1,31 @@ +--- raygui_buggy/src/raygui.h 2025-08-25 20:37:15.268489729 +0100 ++++ raygui/src/raygui.h 2025-08-25 20:38:02.052486927 +0100 +@@ -696,8 +696,8 @@ + RAYGUIAPI Font GuiGetFont(void); // Get gui custom font (global state) + + // Style set/get functions +-RAYGUIAPI void GuiSetStyle(int control, int property, int value); // Set one style property +-RAYGUIAPI int GuiGetStyle(int control, int property); // Get one style property ++RAYGUIAPI void GuiSetStyle(int control, int property, unsigned int value); // Set one style property ++RAYGUIAPI unsigned int GuiGetStyle(int control, int property); // Get one style property + + // Styles loading functions + RAYGUIAPI void GuiLoadStyle(const char *fileName); // Load style file over global style variable (.rgs) +@@ -1557,7 +1557,7 @@ + } + + // Set control style property value +-void GuiSetStyle(int control, int property, int value) ++void GuiSetStyle(int control, int property, int unsigned value) + { + if (!guiStyleLoaded) GuiLoadStyleDefault(); + guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property] = value; +@@ -1570,7 +1570,7 @@ + } + + // Get control style property value +-int GuiGetStyle(int control, int property) ++unsigned int GuiGetStyle(int control, int property) + { + if (!guiStyleLoaded) GuiLoadStyleDefault(); + return guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property]; From 89de0fdcab02d79780cb2a23e8d6322471ba81a2 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 26 Aug 2025 18:20:37 +0100 Subject: [PATCH 3/3] oops wrong file --- raygui.h.patch | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 raygui.h.patch diff --git a/raygui.h.patch b/raygui.h.patch deleted file mode 100644 index 28be2eed..00000000 --- a/raygui.h.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- raygui/src/raygui.h 2025-08-25 20:21:15.859513660 +0100 -+++ /usr/local/include/raygui.h 2025-08-25 20:19:14.266348254 +0100 -@@ -696,8 +696,8 @@ - RAYGUIAPI Font GuiGetFont(void); // Get gui custom font (global state) - - // Style set/get functions --RAYGUIAPI void GuiSetStyle(int control, int property, int value); // Set one style property --RAYGUIAPI int GuiGetStyle(int control, int property); // Get one style property -+RAYGUIAPI void GuiSetStyle(int control, int property, unsigned int value); // Set one style property -+RAYGUIAPI unsigned int GuiGetStyle(int control, int property); // Get one style property - - // Styles loading functions - RAYGUIAPI void GuiLoadStyle(const char *fileName); // Load style file over global style variable (.rgs) -@@ -1557,7 +1557,7 @@ - } - - // Set control style property value --void GuiSetStyle(int control, int property, int value) -+void GuiSetStyle(int control, int property, unsigned int value) - { - if (!guiStyleLoaded) GuiLoadStyleDefault(); - guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property] = value; -@@ -1570,7 +1570,7 @@ - } - - // Get control style property value --int GuiGetStyle(int control, int property) -+unsigned int GuiGetStyle(int control, int property) - { - if (!guiStyleLoaded) GuiLoadStyleDefault(); - return guiStyle[control*(RAYGUI_MAX_PROPS_BASE + RAYGUI_MAX_PROPS_EXTENDED) + property];