| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -106,8 +106,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    for (;;) | 
					 | 
					 | 
					 | 
					    for (;;) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    { | 
					 | 
					 | 
					 | 
					    { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        // Enumerate display adapters
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        DISPLAY_DEVICE adapter, display; | 
					 | 
					 | 
					 | 
					        DISPLAY_DEVICE adapter, display; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        char* name; | 
					 | 
					 | 
					 | 
					        char* name; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        HDC dc; | 
					 | 
					 | 
					 | 
					        HDC dc; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -148,7 +146,9 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        name = _glfwCreateUTF8FromWideString(display.DeviceString); | 
					 | 
					 | 
					 | 
					        name = _glfwCreateUTF8FromWideString(display.DeviceString); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (!name) | 
					 | 
					 | 
					 | 
					        if (!name) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        { | 
					 | 
					 | 
					 | 
					        { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // TODO: wat
 | 
					 | 
					 | 
					 | 
					            _glfwDestroyMonitors(monitors, found); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            _glfwInputError(GLFW_PLATFORM_ERROR, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					                            "Failed to convert string to UTF-8"); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return NULL; | 
					 | 
					 | 
					 | 
					            return NULL; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -159,12 +159,6 @@ _GLFWmonitor** _glfwPlatformGetMonitors(int* count) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        free(name); | 
					 | 
					 | 
					 | 
					        free(name); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        DeleteDC(dc); | 
					 | 
					 | 
					 | 
					        DeleteDC(dc); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        if (!monitors[found]) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // TODO: wat
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            return NULL; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        wcscpy(monitors[found]->win32.name, adapter.DeviceName); | 
					 | 
					 | 
					 | 
					        wcscpy(monitors[found]->win32.name, adapter.DeviceName); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        found++; | 
					 | 
					 | 
					 | 
					        found++; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |