mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Made struct member lowercase.
This commit is contained in:
parent
ddbd3a7895
commit
8074209af4
@ -244,7 +244,7 @@ typedef struct _GLFWlibraryX11
|
|||||||
int interval;
|
int interval;
|
||||||
int blanking;
|
int blanking;
|
||||||
int exposure;
|
int exposure;
|
||||||
} Saver;
|
} saver;
|
||||||
|
|
||||||
// Fullscreen data
|
// Fullscreen data
|
||||||
struct {
|
struct {
|
||||||
|
@ -862,18 +862,20 @@ static GLboolean createWindow(_GLFWwindow* window,
|
|||||||
|
|
||||||
static void enterFullscreenMode(_GLFWwindow* window)
|
static void enterFullscreenMode(_GLFWwindow* window)
|
||||||
{
|
{
|
||||||
if (!_glfwLibrary.X11.Saver.changed)
|
if (!_glfwLibrary.X11.saver.changed)
|
||||||
{
|
{
|
||||||
// Remember old screen saver settings
|
// Remember old screen saver settings
|
||||||
XGetScreenSaver(_glfwLibrary.X11.display,
|
XGetScreenSaver(_glfwLibrary.X11.display,
|
||||||
&_glfwLibrary.X11.Saver.timeout, &_glfwLibrary.X11.Saver.interval,
|
&_glfwLibrary.X11.saver.timeout,
|
||||||
&_glfwLibrary.X11.Saver.blanking, &_glfwLibrary.X11.Saver.exposure);
|
&_glfwLibrary.X11.saver.interval,
|
||||||
|
&_glfwLibrary.X11.saver.blanking,
|
||||||
|
&_glfwLibrary.X11.saver.exposure);
|
||||||
|
|
||||||
// Disable screen saver
|
// Disable screen saver
|
||||||
XSetScreenSaver(_glfwLibrary.X11.display, 0, 0, DontPreferBlanking,
|
XSetScreenSaver(_glfwLibrary.X11.display, 0, 0, DontPreferBlanking,
|
||||||
DefaultExposures);
|
DefaultExposures);
|
||||||
|
|
||||||
_glfwLibrary.X11.Saver.changed = GL_TRUE;
|
_glfwLibrary.X11.saver.changed = GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_glfwSetVideoMode(window->X11.screen,
|
_glfwSetVideoMode(window->X11.screen,
|
||||||
@ -962,16 +964,16 @@ static void leaveFullscreenMode(_GLFWwindow* window)
|
|||||||
_glfwRestoreVideoMode(window->X11.screen);
|
_glfwRestoreVideoMode(window->X11.screen);
|
||||||
|
|
||||||
// Did we change the screen saver setting?
|
// Did we change the screen saver setting?
|
||||||
if (_glfwLibrary.X11.Saver.changed)
|
if (_glfwLibrary.X11.saver.changed)
|
||||||
{
|
{
|
||||||
// Restore old screen saver settings
|
// Restore old screen saver settings
|
||||||
XSetScreenSaver(_glfwLibrary.X11.display,
|
XSetScreenSaver(_glfwLibrary.X11.display,
|
||||||
_glfwLibrary.X11.Saver.timeout,
|
_glfwLibrary.X11.saver.timeout,
|
||||||
_glfwLibrary.X11.Saver.interval,
|
_glfwLibrary.X11.saver.interval,
|
||||||
_glfwLibrary.X11.Saver.blanking,
|
_glfwLibrary.X11.saver.blanking,
|
||||||
_glfwLibrary.X11.Saver.exposure);
|
_glfwLibrary.X11.saver.exposure);
|
||||||
|
|
||||||
_glfwLibrary.X11.Saver.changed = GL_FALSE;
|
_glfwLibrary.X11.saver.changed = GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window->X11.hasEWMH &&
|
if (window->X11.hasEWMH &&
|
||||||
|
Loading…
Reference in New Issue
Block a user