Skip to content

Commit d0d42e7

Browse files
committed
inform glfw that a change of window size has taken place
1 parent b618d7b commit d0d42e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platforms/rcore_web.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
16921692

16931693
emscripten_set_canvas_element_size(GetCanvasId(), width, height);
16941694

1695+
glfwSetWindowSize(platform.handle, width, height); // inform glfw of the new size
1696+
16951697
SetupViewport(width, height); // Reset viewport and projection matrix for new size
16961698

16971699
CORE.Window.currentFbo.width = width;

0 commit comments

Comments
 (0)