Fixed a buffer overrun in the skin reading... make saving the config work again...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@719 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
4
init.c
4
init.c
@@ -230,8 +230,8 @@ void Center_GUI_cursor(byte *cursor_buffer, int cursor_number)
|
||||
Cursor_offset_X[cursor_number]=14-start_x;
|
||||
Cursor_offset_Y[cursor_number]=14-start_y;
|
||||
|
||||
for (y=0;y<29;y++)
|
||||
for (x=0;x<29;x++)
|
||||
for (y=0;y<CURSOR_SPRITE_HEIGHT;y++)
|
||||
for (x=0;x<CURSOR_SPRITE_WIDTH;x++)
|
||||
GFX_cursor_sprite[cursor_number][y][x]=cursor_buffer[(start_y+y)*29+start_x+x];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user