Browse Source

Tinybrain moment

SplatTab 3 years ago
parent
commit
a23c06791e
1 changed files with 1 additions and 5 deletions
  1. 1 5
      rlImGui.cpp

+ 1 - 5
rlImGui.cpp

@@ -435,11 +435,7 @@ void rlImGuiImage(const Texture *image)
 }
 
 bool rlImGuiImageButton(const Texture *image) {
-    if (ImGui::ImageButton((ImTextureID)image, ImVec2(float(image->width), float(image->height))))
-    {
-        return true;
-    }
-    return false;
+    return ImGui::ImageButton((ImTextureID)image, ImVec2(float(image->width), float(image->height)));
 }
 
 void rlImGuiImageSize(const Texture *image, int width, int height)