Преглед на файлове

use the correct window size for scissor mode inverts.

Jeff Myers преди 1 година
родител
ревизия
a7ea68023c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      rlImGui.cpp

+ 1 - 1
rlImGui.cpp

@@ -254,7 +254,7 @@ static void EnableScissor(float x, float y, float width, float height)
     rlEnableScissorTest();
     ImGuiIO& io = ImGui::GetIO();
     rlScissor((int)(x * io.DisplayFramebufferScale.x),
-        int((GetScreenHeight() - (int)(y + height)) * io.DisplayFramebufferScale.y),
+        int((io.DisplaySize.y - (int)(y + height)) * io.DisplayFramebufferScale.y),
         (int)(width * io.DisplayFramebufferScale.x),
         (int)(height * io.DisplayFramebufferScale.y));
 }