Move reset code to own function

Also clear persistent view when loading a save or clearing the screen.
This commit is contained in:
jacksonmj
2011-02-19 15:34:04 +00:00
parent 32f8e85d50
commit a2091ede76
4 changed files with 32 additions and 39 deletions

View File

@@ -176,6 +176,7 @@ int thumb_cache_find(char *id, void **thumb, int *size);
void *build_thumb(int *size, int bzip2);
void *build_save(int *size, int x0, int y0, int w, int h);
int parse_save(void *save, int size, int replace, int x0, int y0);
void clear_sim(void);
void del_stamp(int d);
void sdl_seticon(void);
#endif

View File

@@ -46,6 +46,7 @@ extern unsigned char fire_b[YRES/CELL][XRES/CELL];
extern unsigned int fire_alpha[CELL*3][CELL*3];
extern pixel *fire_bg;
extern pixel *pers_bg;
pixel *rescale_img(pixel *src, int sw, int sh, int *qw, int *qh, int f);