1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2014-03-20 11:17:55 +01:00
parent 8fa9cc0de3
commit 7ac3d85126
3 changed files with 13 additions and 2 deletions

View File

@ -1263,7 +1263,12 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
}
for (i = 0; i < image->width * image->height; i++, target++, source += 4)
*target = (source[3] << 24) | (source[0] << 16) | (source[1] << 8) | source[2];
{
*target = (source[3] << 24) |
(source[0] << 16) |
(source[1] << 8) |
source[2];
}
ZeroMemory(&ii, sizeof(ii));
ii.fIcon = FALSE;

View File

@ -1373,7 +1373,12 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
XcursorPixel* target = native->pixels;
for (i = 0; i < image->width * image->height; i++, target++, source += 4)
*target = (source[3] << 24) | (source[0] << 16) | (source[1] << 8) | source[2];
{
*target = (source[3] << 24) |
(source[0] << 16) |
(source[1] << 8) |
source[2];
}
cursor->x11.handle = XcursorImageLoadCursor(_glfw.x11.display, native);
XcursorImageDestroy(native);

View File

@ -132,3 +132,4 @@ int main(void)
glfwTerminate();
exit(EXIT_SUCCESS);
}