mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
Formatting.
This commit is contained in:
parent
8fa9cc0de3
commit
7ac3d85126
@ -1263,7 +1263,12 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < image->width * image->height; i++, target++, source += 4)
|
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));
|
ZeroMemory(&ii, sizeof(ii));
|
||||||
ii.fIcon = FALSE;
|
ii.fIcon = FALSE;
|
||||||
|
@ -1373,7 +1373,12 @@ int _glfwPlatformCreateCursor(_GLFWcursor* cursor,
|
|||||||
XcursorPixel* target = native->pixels;
|
XcursorPixel* target = native->pixels;
|
||||||
|
|
||||||
for (i = 0; i < image->width * image->height; i++, target++, source += 4)
|
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);
|
cursor->x11.handle = XcursorImageLoadCursor(_glfw.x11.display, native);
|
||||||
XcursorImageDestroy(native);
|
XcursorImageDestroy(native);
|
||||||
|
@ -132,3 +132,4 @@ int main(void)
|
|||||||
glfwTerminate();
|
glfwTerminate();
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user