瀏覽代碼

Fix initial windowed mode size for test

Camilla Löwy 3 年之前
父節點
當前提交
cd01187b9d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      tests/iconify.c

+ 3 - 3
tests/iconify.c

@@ -38,7 +38,7 @@
 
 #include "getopt.h"
 
-static int windowed_xpos, windowed_ypos, windowed_width, windowed_height;
+static int windowed_xpos, windowed_ypos, windowed_width = 640, windowed_height = 480;
 
 static void usage(void)
 {
@@ -181,8 +181,8 @@ static GLFWwindow* create_window(GLFWmonitor* monitor)
     }
     else
     {
-        width = 640;
-        height = 480;
+        width = windowed_width;
+        height = windowed_height;
     }
 
     window = glfwCreateWindow(width, height, "Iconify", monitor, NULL);