]> git.lizzy.rs Git - shadowclad.git/blobdiff - src/engine/ui.c
Migrate to GLFW 3
[shadowclad.git] / src / engine / ui.c
index 4b06f0ce62f0fe8b1ea90a0a928a1dde262c6591..7a8da1db5526a99527a69e13592825fccce90f3f 100644 (file)
@@ -2,11 +2,11 @@
 
 #include "render.h"
 
-void resizeStage(GLsizei width, GLsizei height) {
+void resizeStage(GLFWwindow* window, int width, int height) {
        if (height == 0)
                height = 1;
-       
+
        glViewport(0, 0, width, height);
-       
+
        viewportAspectRatio = (float) width / (float) height;
 }