Implemented display iteration for win32 platform.

This commit is contained in:
Marcel Metz
2011-10-01 13:42:59 -04:00
parent 4634c334ea
commit a905e671b3
4 changed files with 124 additions and 1 deletions
+4
View File
@@ -164,6 +164,8 @@ int _glfwPlatformInit(void)
_glfwLibrary.originalRampSize = 256;
_glfwPlatformGetGammaRamp(&_glfwLibrary.originalRamp);
_glfwInitDisplays();
_glfwInitTimer();
return GL_TRUE;
@@ -179,6 +181,8 @@ int _glfwPlatformTerminate(void)
// Restore the original gamma ramp
_glfwPlatformSetGammaRamp(&_glfwLibrary.originalRamp);
_glfwTerminateDisplays();
if (_glfwLibrary.Win32.classAtom)
{
UnregisterClass(_GLFW_WNDCLASSNAME, _glfwLibrary.Win32.instance);