X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame_sp%2Finit.c;h=a8e672769bc70bac22bb95f7ade02ee9a71af9de;hb=41def9c1d8c6939b8754fdab43579272e49d4da4;hp=32a832c200e45ce21ed4f9050974c54dbfa37e26;hpb=4179dabc517f32c163c5d2c9aec2e15c57225d42;p=rocksndiamonds.git diff --git a/src/game_sp/init.c b/src/game_sp/init.c index 32a832c2..a8e67276 100644 --- a/src/game_sp/init.c +++ b/src/game_sp/init.c @@ -3,7 +3,7 @@ #include "global.h" -Bitmap *screenBitmap; +Bitmap *bitmap_db_field_sp; struct EngineSnapshotInfo_SP engine_snapshot_sp; @@ -11,14 +11,41 @@ void sp_open_all() { Form_Load(); - screenBitmap = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY, - DEFAULT_DEPTH); +#if 0 + printf("::: open 1: %d, %d [%08x]\n", FXSIZE, FYSIZE, bitmap_db_field_sp); + + /* + bitmap_db_field_sp = CreateBitmap(FXSIZE, FYSIZE, DEFAULT_DEPTH); + bitmap_db_field_sp = CreateBitmap(MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY, + DEFAULT_DEPTH); + */ + + ReCreateBitmap(&bitmap_db_field_sp, FXSIZE, FYSIZE, DEFAULT_DEPTH); + + printf("::: open 2: %d, %d [%08x]\n", FXSIZE, FYSIZE, bitmap_db_field_sp); +#endif } void sp_close_all() { } +void InitGfxBuffers_SP() +{ +#if 1 + printf("::: init 1: %d, %d [%08x]\n", FXSIZE, FYSIZE, bitmap_db_field_sp); + + /* + ReCreateBitmap(&bitmap_db_field_sp, MAX_BUF_XSIZE * TILEX, MAX_BUF_YSIZE * TILEY, + DEFAULT_DEPTH); + */ + + ReCreateBitmap(&bitmap_db_field_sp, FXSIZE, FYSIZE, DEFAULT_DEPTH); + + printf("::: init 2: %d, %d [%08x]\n", FXSIZE, FYSIZE, bitmap_db_field_sp); +#endif +} + unsigned int InitEngineRandom_SP(long seed) { if (seed == NEW_RANDOMIZE)