diff options
author | 2025-05-16 16:55:35 +0200 | |
---|---|---|
committer | 2025-05-16 16:55:35 +0200 | |
commit | 0a4f6e42c1e8501f498d42356575e679998fbc2e (patch) | |
tree | 9a6f7e70c640d21228601ca4075e09b1632eb52a /src/main/ui/x11/ui.c | |
parent | 0000ef909248febd81c7a6aa070e08ab959dda61 (diff) | |
download | tris-0a4f6e42c1e8501f498d42356575e679998fbc2e.tar.gz tris-0a4f6e42c1e8501f498d42356575e679998fbc2e.zip |
Set the GL viewport on resize of the window
Diffstat (limited to 'src/main/ui/x11/ui.c')
-rw-r--r-- | src/main/ui/x11/ui.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/ui/x11/ui.c b/src/main/ui/x11/ui.c index cf08ac0..369eb7d 100644 --- a/src/main/ui/x11/ui.c +++ b/src/main/ui/x11/ui.c @@ -114,6 +114,7 @@ static void ui_on_resize(XEvent event) { if (event.type != ConfigureNotify) return; + glViewport(0, 0, event.xconfigure.width, event.xconfigure.height); } void |