version 1.3 | | version 1.4 |
---|
| | |
* Functions to save/restore game state. | | * Functions to save/restore game state. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.4 2000/10/26 23:58:45 donut |
| | * increased thumbnailtext size to remove aw too big error at high res with small font |
| | * |
* Revision 1.3 1999/11/20 10:05:18 donut | | * Revision 1.3 1999/11/20 10:05:18 donut |
* variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). | | * variable size menu patch from Jan Bobrowski. Variable menu font size support and a bunch of fixes for menus that didn't work quite right, by me (MPM). |
* | | * |
| | |
char filename[NUM_SAVES][20]; | | char filename[NUM_SAVES][20]; |
char desc[NUM_SAVES][DESC_LENGTH + 16]; | | char desc[NUM_SAVES][DESC_LENGTH + 16]; |
char id[5]; | | char id[5]; |
char thumbnailtext[15]; | | char thumbnailtext[50]; |
int valid; | | int valid; |
| | |
nsaves=0; | | nsaves=0; |
| | |
gr_get_string_size("\n\n",&w,&h2,&aw);//adding successive newlines increases less than the size of a single | | gr_get_string_size("\n\n",&w,&h2,&aw);//adding successive newlines increases less than the size of a single |
h2=h2-h; | | h2=h2-h; |
aw=(SHEIGHT/(200.0/THUMBNAIL_H)-h)/h2+1; | | aw=(SHEIGHT/(200.0/THUMBNAIL_H)-h)/h2+1; |
if (aw>=14) Error("state_get_restore_file: aw too big\n"); | | if (aw>=49) Error("state_get_restore_file: aw too big\n"); |
memset(thumbnailtext,'\n',aw); | | memset(thumbnailtext,'\n',aw); |
thumbnailtext[aw]=0; | | thumbnailtext[aw]=0; |
m[0].text = thumbnailtext; | | m[0].text = thumbnailtext; |