From 050249b2e57fc5a5878fcc30c18075ac0b5267cb Mon Sep 17 00:00:00 2001 From: Mareks <47260097+sshsphere@users.noreply.github.com> Date: Sat, 29 Jul 2023 11:18:31 +0300 Subject: [PATCH] fix c++ build errors (#314) --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 6d463d2..d98d1cb 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -4046,7 +4046,7 @@ void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color) if (BIT_CHECK(guiIconsPtr[iconId*RAYGUI_ICON_DATA_ELEMENTS + i], k)) { #if !defined(RAYGUI_STANDALONE) - GuiDrawRectangle((Rectangle){ posX + (k%RAYGUI_ICON_SIZE)*pixelSize, posY + y*pixelSize, pixelSize, pixelSize }, 0, BLANK, color); + GuiDrawRectangle(RAYGUI_CLITERAL(Rectangle){ (float)posX + (k%RAYGUI_ICON_SIZE)*pixelSize, (float)posY + y*pixelSize, (float)pixelSize, (float)pixelSize }, 0, BLANK, color); #endif }