mirror of
https://github.com/aap/librw.git
synced 2024-11-24 12:45:43 +00:00
Use glfwGetFramebufferSize instead of glfwGetWindowSize
glfwGetFramebufferSize is scaled by the display scale. This fixes the game being shrunk to the bottom left quarter of the window on Wayland HiDPI setups.
This commit is contained in:
parent
7c61a54c5b
commit
57227e9b2d
@ -1156,7 +1156,7 @@ beginUpdate(Camera *cam)
|
||||
#ifdef LIBRW_SDL2
|
||||
SDL_GetWindowSize(glGlobals.window, &w, &h);
|
||||
#else
|
||||
glfwGetWindowSize(glGlobals.window, &w, &h);
|
||||
glfwGetFramebufferSize(glGlobals.window, &w, &h);
|
||||
#endif
|
||||
}else{
|
||||
w = cam->frameBuffer->width;
|
||||
|
Loading…
Reference in New Issue
Block a user