mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 20:11:58 +00:00
Removed paranoid error check.
This commit is contained in:
parent
4f8f6c7d89
commit
b4493dd3bc
@ -41,7 +41,7 @@
|
|||||||
// Lexical comparison function for GLFW video modes, used by qsort
|
// 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;
|
int firstBPP, secondBPP, firstSize, secondSize;
|
||||||
GLFWvidmode* first = (GLFWvidmode*) firstPtr;
|
GLFWvidmode* first = (GLFWvidmode*) firstPtr;
|
||||||
|
@ -255,13 +255,7 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count)
|
|||||||
monitor.cb = sizeof(DISPLAY_DEVICE);
|
monitor.cb = sizeof(DISPLAY_DEVICE);
|
||||||
|
|
||||||
EnumDisplayDevices(adapter.DeviceName, 0, &monitor, 0);
|
EnumDisplayDevices(adapter.DeviceName, 0, &monitor, 0);
|
||||||
|
|
||||||
dc = CreateDC(L"DISPLAY", monitor.DeviceString, NULL, NULL);
|
dc = CreateDC(L"DISPLAY", monitor.DeviceString, NULL, NULL);
|
||||||
if (!dc)
|
|
||||||
{
|
|
||||||
// TODO: wat
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
monitors[found] = _glfwCreateMonitor(name,
|
monitors[found] = _glfwCreateMonitor(name,
|
||||||
GetDeviceCaps(dc, HORZSIZE),
|
GetDeviceCaps(dc, HORZSIZE),
|
||||||
|
Loading…
Reference in New Issue
Block a user