Skip to content

Commit 9987ffe

Browse files
committed
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.
1 parent 992fe20 commit 9987ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gl/gl3device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ beginUpdate(Camera *cam)
11561156
#ifdef LIBRW_SDL2
11571157
SDL_GetWindowSize(glGlobals.window, &w, &h);
11581158
#else
1159-
glfwGetWindowSize(glGlobals.window, &w, &h);
1159+
glfwGetFramebufferSize(glGlobals.window, &w, &h);
11601160
#endif
11611161
}else{
11621162
w = cam->frameBuffer->width;

0 commit comments

Comments
 (0)