Ver código fonte

use the correct window size for scissor mode inverts.

Jeff Myers 1 ano atrás
pai
commit
a7ea68023c
1 arquivos alterados com 1 adições e 1 exclusões
  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));
 }