diff options
| author | onelin <oscar@nelin.dk> | 2025-03-21 13:04:52 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-03-21 16:28:46 +0000 |
| commit | 8d0c070971d53eedce1d5f1c4412e08f7f0e8795 (patch) | |
| tree | 87ba4f6686e58d3c723a68f7f35b7f213c8d37b0 /src/core | |
| parent | fcd22d1fd9d99a73eefa984548adf86189a0060b (diff) | |
Fix setting wrong window resolution
The desired resolution is not necessary the actual resolution, so we
need to poll for the scaling, which can also be different from monitor
to monitor.
But polling that stuff seems like a job for another day.
See glfwSetWindowContentScaleCallback
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/src/loop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c index dd39db1..49810ef 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -251,6 +251,7 @@ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight p->bindings_len = 0; p->cam = &default_camera; + glm_ortho_default(45.f, p->cam->per); // TODO: Add global bindings |
