version 1.5 | | version 1.6 |
---|
| | |
* Functions to save/restore game state. | | * Functions to save/restore game state. |
* | | * |
* $Log$ | | * $Log$ |
| | * Revision 1.6 2002/03/26 05:33:14 donut |
| | * fix savegame thumbnail saving in OGL |
| | * |
* Revision 1.5 2000/11/13 07:55:34 donut | | * Revision 1.5 2000/11/13 07:55:34 donut |
* fix OGL level load crash | | * fix OGL level load crash |
* | | * |
| | |
#include "strutil.h" | | #include "strutil.h" |
//end added | | //end added |
#include "gamefont.h" | | #include "gamefont.h" |
| | #ifdef OGL |
| | #include "ogl_init.h" |
| | #endif |
| | |
| | |
#ifndef SHAREWARE | | #ifndef SHAREWARE |
| | |
} | | } |
} else { | | } else { |
render_frame(0); | | render_frame(0); |
| | #ifdef OGL |
| | ogl_ubitblt_tolinear(grd_curcanv->cv_bitmap.bm_w, grd_curcanv->cv_bitmap.bm_h, 0, 0, 0, 0, &grd_curscreen->sc_canvas.cv_bitmap, &grd_curcanv->cv_bitmap); |
| | #endif |
} | | } |
fwrite( cnv->cv_bitmap.bm_data, THUMBNAIL_W*THUMBNAIL_H, 1, fp ); | | fwrite( cnv->cv_bitmap.bm_data, THUMBNAIL_W*THUMBNAIL_H, 1, fp ); |
//added ifdef on 9/30/98 by Matt Mueller to fix savegames in linux | | //added ifdef on 9/30/98 by Matt Mueller to fix savegames in linux |