diff --git a/imgui_raylib/rlImGui.cpp b/imgui_raylib/rlImGui.cpp index 1ee36fe..de93f52 100644 --- a/imgui_raylib/rlImGui.cpp +++ b/imgui_raylib/rlImGui.cpp @@ -602,7 +602,7 @@ void rlImGuiImageRenderTextureFit(const RenderTexture *image, bool center) ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (area.y / 2 - sizeY / 2)); } - rlImGuiImageRect(&image->texture, sizeX, sizeY, Rectangle{0, 0, float(image->texture.width), -float(image->texture.height)}); + rlImGuiImageRect(&image->texture, sizeX, sizeY, Rectangle{0, 0, float(image->texture.width), float(image->texture.height)}); } // raw ImGui backend API