diff --git a/src/win32_window.c b/src/win32_window.c index 315f5ad9..88abaedc 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -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; diff --git a/src/x11_window.c b/src/x11_window.c index 9ff5c8df..b92cdfcc 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -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); diff --git a/tests/cursoranim.c b/tests/cursoranim.c index 63aeb3c1..39a229c8 100644 --- a/tests/cursoranim.c +++ b/tests/cursoranim.c @@ -132,3 +132,4 @@ int main(void) glfwTerminate(); exit(EXIT_SUCCESS); } +