Formatting.

This commit is contained in:
Camilla Berglund 2010-10-27 17:53:24 +02:00
parent 189fd1dc4b
commit 53578d7d01

View File

@ -485,7 +485,9 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window, unsigned int* found)
attribs[index++] = attribName; \ attribs[index++] = attribName; \
attribs[index++] = attribValue; attribs[index++] = attribValue;
static int createContext(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, GLXFBConfigID fbconfigID) static int createContext(_GLFWwindow* window,
const _GLFWwndconfig* wndconfig,
GLXFBConfigID fbconfigID)
{ {
int attribs[40]; int attribs[40];
int flags, dummy, index; int flags, dummy, index;
@ -732,7 +734,8 @@ static GLboolean createWindow(_GLFWwindow* window,
// The /only/ reason we are setting the background pixel here is // The /only/ reason we are setting the background pixel here is
// that otherwise our window wont get any decorations on systems // that otherwise our window wont get any decorations on systems
// using Compiz on Intel hardware // using Compiz on Intel hardware
wa.background_pixel = BlackPixel(_glfwLibrary.X11.display, _glfwLibrary.X11.screen); wa.background_pixel = BlackPixel(_glfwLibrary.X11.display,
_glfwLibrary.X11.screen);
wamask |= CWBackPixel; wamask |= CWBackPixel;
} }
@ -1616,7 +1619,9 @@ void _glfwPlatformIconifyWindow(_GLFWwindow* window)
return; return;
} }
XIconifyWindow(_glfwLibrary.X11.display, window->X11.handle, _glfwLibrary.X11.screen); XIconifyWindow(_glfwLibrary.X11.display,
window->X11.handle,
_glfwLibrary.X11.screen);
} }
@ -1821,7 +1826,9 @@ void _glfwPlatformHideMouseCursor(_GLFWwindow* window)
// Hide cursor // Hide cursor
if (!window->X11.pointerHidden) if (!window->X11.pointerHidden)
{ {
XDefineCursor(_glfwLibrary.X11.display, window->X11.handle, _glfwLibrary.X11.cursor); XDefineCursor(_glfwLibrary.X11.display,
window->X11.handle,
_glfwLibrary.X11.cursor);
window->X11.pointerHidden = GL_TRUE; window->X11.pointerHidden = GL_TRUE;
} }