From 8c33be58b25c95be96d230277eaf99281f9a8481 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 4 May 2020 14:14:04 -0400 Subject: [PATCH] Update raygui Rectangle to match raylib Rectangle (#88) Rectangle in raygui should use a float. --- src/raygui.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 4a983ac..dba469f 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -216,10 +216,10 @@ // Rectangle type typedef struct Rectangle { - int x; - int y; - int width; - int height; + float x; + float y; + float width; + float height; } Rectangle; // TODO: Texture2D type is very coupled to raylib, mostly required by GuiImageButton()