1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Made struct member lowercase.

This commit is contained in:
Camilla Berglund 2010-09-09 20:22:23 +02:00
parent ddbd3a7895
commit 8074209af4
2 changed files with 13 additions and 11 deletions

View File

@ -244,7 +244,7 @@ typedef struct _GLFWlibraryX11
int interval;
int blanking;
int exposure;
} Saver;
} saver;
// Fullscreen data
struct {

View File

@ -862,18 +862,20 @@ static GLboolean createWindow(_GLFWwindow* window,
static void enterFullscreenMode(_GLFWwindow* window)
{
if (!_glfwLibrary.X11.Saver.changed)
if (!_glfwLibrary.X11.saver.changed)
{
// Remember old screen saver settings
XGetScreenSaver(_glfwLibrary.X11.display,
&_glfwLibrary.X11.Saver.timeout, &_glfwLibrary.X11.Saver.interval,
&_glfwLibrary.X11.Saver.blanking, &_glfwLibrary.X11.Saver.exposure);
&_glfwLibrary.X11.saver.timeout,
&_glfwLibrary.X11.saver.interval,
&_glfwLibrary.X11.saver.blanking,
&_glfwLibrary.X11.saver.exposure);
// Disable screen saver
XSetScreenSaver(_glfwLibrary.X11.display, 0, 0, DontPreferBlanking,
DefaultExposures);
_glfwLibrary.X11.Saver.changed = GL_TRUE;
_glfwLibrary.X11.saver.changed = GL_TRUE;
}
_glfwSetVideoMode(window->X11.screen,
@ -962,16 +964,16 @@ static void leaveFullscreenMode(_GLFWwindow* window)
_glfwRestoreVideoMode(window->X11.screen);
// Did we change the screen saver setting?
if (_glfwLibrary.X11.Saver.changed)
if (_glfwLibrary.X11.saver.changed)
{
// Restore old screen saver settings
XSetScreenSaver(_glfwLibrary.X11.display,
_glfwLibrary.X11.Saver.timeout,
_glfwLibrary.X11.Saver.interval,
_glfwLibrary.X11.Saver.blanking,
_glfwLibrary.X11.Saver.exposure);
_glfwLibrary.X11.saver.timeout,
_glfwLibrary.X11.saver.interval,
_glfwLibrary.X11.saver.blanking,
_glfwLibrary.X11.saver.exposure);
_glfwLibrary.X11.Saver.changed = GL_FALSE;
_glfwLibrary.X11.saver.changed = GL_FALSE;
}
if (window->X11.hasEWMH &&