Commit 6727062
committed
[rcore][GLFW] call
for some reason when glfwSetWindowAttrib() is called it changes the
value in `CORE.Window.previousScreen`, it causes the window to no resize
into the orginal size after minimizing the window
logs:
INFO: SHADER: [ID 1] Vertex shader compiled successfully
INFO: SHADER: [ID 2] Fragment shader compiled successfully
INFO: SHADER: [ID 3] Program shader loaded successfully
INFO: SHADER: [ID 3] Default shader loaded successfully
INFO: RLGL: Render batch vertex buffers loaded successfully in RAM (CPU)
INFO: RLGL: Render batch vertex buffers loaded successfully in VRAM (GPU)
INFO: RLGL: Default OpenGL state initialized successfully
INFO: TEXTURE: [ID 2] Texture loaded successfully (128x128 | GRAY_ALPHA | 1 mipmaps)
INFO: FONT: Default font loaded successfully (224 glyphs)
INFO: SYSTEM: Working Directory: D:\Projects\tmp\raylib\src
INFO:[TEST] Height: 500, Width: 900 <- after CORE.Window.screen = CORE.Window.previousScreen
INFO:[TEST] Height: 1061, Width: 1920 <- after glfwSetWindowAttrib(platform.handle, GLFW_DECORATED, GLFW_TRUE)
if we clear the flags after we call glfwSetWindowMonitor() the window
size stays correct
Signed-off-by: tillua467 <tillua467@gmail.com>glfwSetWindowAttrib() after glfwSetWindowMonitor()
1 parent 050042b commit 6727062
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 304 | | |
309 | 305 | | |
310 | 306 | | |
| |||
320 | 316 | | |
321 | 317 | | |
322 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
0 commit comments