Browse Source

Fixed C++ compilation in C literal in call to SetShapesTexture (#276)

* Fixed C++ compilation

* Use RAYGUI_CLITERAL
Melissa 2 năm trước cách đây
mục cha
commit
ab209bc5d1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/raygui.h

+ 1 - 1
src/raygui.h

@@ -3638,7 +3638,7 @@ void GuiLoadStyleDefault(void)
         // NOTE: Default raylib font character 95 is a white square
         // NOTE: Default raylib font character 95 is a white square
         Rectangle whiteChar = guiFont.recs[95];
         Rectangle whiteChar = guiFont.recs[95];
         // NOTE: We set up a 1px padding on char rectangle to avoid pixel bleeding on MSAA filtering
         // 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 });
     }
     }
 }
 }