mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 08:58:58 +00:00
Use glfwSetFramebufferSizeCallback instead of glfwSetWindowSizeCallback
Framebuffer size is scaled by the display scale. This fixes the game being shrunk to the bottom left quarter of the window on Wayland HiDPI setups. Corresponding change in librw: glfwGetWindowSize -> glfwGetFramebufferSize.
This commit is contained in:
parent
70aac0f460
commit
5654347c5d
1 changed files with 1 additions and 1 deletions
|
@ -881,7 +881,7 @@ void psPostRWinit(void)
|
|||
RwEngineGetVideoModeInfo(&vm, GcurSelVM);
|
||||
|
||||
glfwSetKeyCallback(PSGLOBAL(window), keypressCB);
|
||||
glfwSetWindowSizeCallback(PSGLOBAL(window), resizeCB);
|
||||
glfwSetFramebufferSizeCallback(PSGLOBAL(window), resizeCB);
|
||||
glfwSetScrollCallback(PSGLOBAL(window), scrollCB);
|
||||
glfwSetCursorPosCallback(PSGLOBAL(window), cursorCB);
|
||||
glfwSetCursorEnterCallback(PSGLOBAL(window), cursorEnterCB);
|
||||
|
|
Loading…
Reference in a new issue