mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-19 22:10:52 +00:00
committed by
Sam Lantinga
parent
e29c0661cc
commit
d0bbfdbfb8
@@ -102,7 +102,8 @@ init_system_cursor(const char *image[])
|
||||
int i, row, col;
|
||||
Uint8 data[4 * 32];
|
||||
Uint8 mask[4 * 32];
|
||||
int hot_x, hot_y;
|
||||
int hot_x = 0;
|
||||
int hot_y = 0;
|
||||
|
||||
i = -1;
|
||||
for (row = 0; row < 32; ++row) {
|
||||
@@ -127,7 +128,7 @@ init_system_cursor(const char *image[])
|
||||
}
|
||||
}
|
||||
}
|
||||
SDL_sscanf(image[4 + row], "%d,%d", &hot_x, &hot_y);
|
||||
(void)SDL_sscanf(image[4 + row], "%d,%d", &hot_x, &hot_y);
|
||||
return SDL_CreateCursor(data, mask, 32, 32, hot_x, hot_y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user