mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-24 15:13:11 +00:00
inform glfw that a change of window size has taken place
This commit is contained in:
parent
b618d7b35b
commit
d0d42e78ea
@ -1692,6 +1692,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
|
||||
|
||||
emscripten_set_canvas_element_size(GetCanvasId(), width, height);
|
||||
|
||||
glfwSetWindowSize(platform.handle, width, height); // inform glfw of the new size
|
||||
|
||||
SetupViewport(width, height); // Reset viewport and projection matrix for new size
|
||||
|
||||
CORE.Window.currentFbo.width = width;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user