Fix initial windowed mode size for test

(cherry picked from commit cd01187b9d)
This commit is contained in:
Camilla Löwy 2021-12-08 23:09:59 +01:00
parent 869e68a015
commit f21a9104e4

View File

@ -37,7 +37,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)
{
@ -180,8 +180,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);