mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Fixed type errors in modes test.
This commit is contained in:
parent
871e1a70d7
commit
88fd170e64
@ -92,7 +92,7 @@ static void key_callback(GLFWwindow dummy, int key, int action)
|
|||||||
|
|
||||||
static void list_modes(void)
|
static void list_modes(void)
|
||||||
{
|
{
|
||||||
size_t count, i;
|
int count, i;
|
||||||
GLFWvidmode desktop_mode;
|
GLFWvidmode desktop_mode;
|
||||||
GLFWvidmode* modes = glfwGetVideoModes(&count);
|
GLFWvidmode* modes = glfwGetVideoModes(&count);
|
||||||
|
|
||||||
@ -114,8 +114,7 @@ static void list_modes(void)
|
|||||||
|
|
||||||
static void test_modes(void)
|
static void test_modes(void)
|
||||||
{
|
{
|
||||||
int width, height;
|
int i, count, width, height;
|
||||||
size_t i, count;
|
|
||||||
GLFWvidmode* modes = glfwGetVideoModes(&count);
|
GLFWvidmode* modes = glfwGetVideoModes(&count);
|
||||||
|
|
||||||
glfwSetWindowSizeCallback(window_size_callback);
|
glfwSetWindowSizeCallback(window_size_callback);
|
||||||
|
Loading…
Reference in New Issue
Block a user