Video mode setting cleanup.

This commit is contained in:
Camilla Berglund
2013-04-21 21:28:07 +02:00
parent b0ae7a6957
commit f5ba0d9f22
7 changed files with 16 additions and 25 deletions
+2 -2
View File
@@ -50,13 +50,13 @@
// Change the current video mode
//
int _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* mode)
GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired)
{
GLFWvidmode current;
const GLFWvidmode* best;
DEVMODE dm;
best = _glfwChooseVideoMode(monitor, mode);
best = _glfwChooseVideoMode(monitor, desired);
_glfwPlatformGetVideoMode(monitor, &current);
if (_glfwCompareVideoModes(&current, best) == 0)