Commit 1ac328b
committed
Fix high DPI rendering on MacOS
According to the SDL2 docs, `SDL_GetWindowSize` returns the client
window size in screen coordinates, `SDL_GL_GetDrawableSize` returns the
size in pixels.
This change makes sure the `glViewport` calls always use pixels.1 parent 3a1c729 commit 1ac328b
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments