]> git.lizzy.rs Git - shadowclad.git/blob - src/engine/ui.c
Add prelude with UNUSED macro
[shadowclad.git] / src / engine / ui.c
1 #include "ui.h"
2
3 #include "_prelude.h"
4 #include "render.h"
5
6 void resizeStage(GLFWwindow* window UNUSED, int width, int height) {
7         if (height == 0)
8                 height = 1;
9
10         glViewport(0, 0, width, height);
11
12         viewportAspectRatio = (float) width / (float) height;
13 }