From b4493dd3bcc7ad472c9293eb520e964a42618c89 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 12 Sep 2012 23:03:07 +0200 Subject: [PATCH] Removed paranoid error check. --- src/monitor.c | 2 +- src/win32_monitor.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index 6cab5ae4..3a4d9b90 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -41,7 +41,7 @@ // Lexical comparison function for GLFW video modes, used by qsort //======================================================================== -int compareVideoModes(const void* firstPtr, const void* secondPtr) +static int compareVideoModes(const void* firstPtr, const void* secondPtr) { int firstBPP, secondBPP, firstSize, secondSize; GLFWvidmode* first = (GLFWvidmode*) firstPtr; diff --git a/src/win32_monitor.c b/src/win32_monitor.c index f54735d7..88eb656b 100644 --- a/src/win32_monitor.c +++ b/src/win32_monitor.c @@ -255,13 +255,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) monitor.cb = sizeof(DISPLAY_DEVICE); EnumDisplayDevices(adapter.DeviceName, 0, &monitor, 0); - dc = CreateDC(L"DISPLAY", monitor.DeviceString, NULL, NULL); - if (!dc) - { - // TODO: wat - return NULL; - } monitors[found] = _glfwCreateMonitor(name, GetDeviceCaps(dc, HORZSIZE),