From ab209bc5d18b060f6701e9904c9f3275d8676a81 Mon Sep 17 00:00:00 2001 From: Melissa Date: Sat, 29 Apr 2023 13:14:40 +0200 Subject: [PATCH] Fixed C++ compilation in C literal in call to SetShapesTexture (#276) * Fixed C++ compilation * Use RAYGUI_CLITERAL --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index bf69bfc..e4fe47d 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -3638,7 +3638,7 @@ void GuiLoadStyleDefault(void) // NOTE: Default raylib font character 95 is a white square Rectangle whiteChar = guiFont.recs[95]; // NOTE: We set up a 1px padding on char rectangle to avoid pixel bleeding on MSAA filtering - SetShapesTexture(guiFont.texture, (Rectangle){ whiteChar.x + 1, whiteChar.y + 1, whiteChar.width - 2, whiteChar.height - 2 }); + SetShapesTexture(guiFont.texture, RAYGUI_CLITERAL(Rectangle){ whiteChar.x + 1, whiteChar.y + 1, whiteChar.width - 2, whiteChar.height - 2 }); } }