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:
parent
8b29381699
commit
be1da7b6a6
@ -22,6 +22,8 @@
|
||||
#ifndef __BOUTONS_H_
|
||||
#define __BOUTONS_H_
|
||||
|
||||
#include "struct.h"
|
||||
|
||||
/*!
|
||||
Displays an error message when calling an unavailable function.
|
||||
Only used in the beta versions for things we haven't coded yet.
|
||||
|
||||
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];
|
||||
}
|
||||
|
||||
|
||||
17
loadsave.c
17
loadsave.c
@ -32,18 +32,19 @@
|
||||
#include <png.h>
|
||||
#endif
|
||||
|
||||
#include "const.h"
|
||||
#include "struct.h"
|
||||
#include "global.h"
|
||||
#include "misc.h"
|
||||
#include "pages.h"
|
||||
#include "op_c.h"
|
||||
#include "buttons.h"
|
||||
#include "const.h"
|
||||
#include "errors.h"
|
||||
#include "global.h"
|
||||
#include "io.h"
|
||||
#include "sdlscreen.h"
|
||||
#include "windows.h"
|
||||
#include "loadsave.h"
|
||||
#include "misc.h"
|
||||
#include "op_c.h"
|
||||
#include "pages.h"
|
||||
#include "palette.h"
|
||||
#include "sdlscreen.h"
|
||||
#include "struct.h"
|
||||
#include "windows.h"
|
||||
|
||||
// -- PKM -------------------------------------------------------------------
|
||||
void Test_PKM(void);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user