X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain_sp.h;h=8aa3f7fc705ffa018db01a24c2e4f81b894bdb66;hb=be1c10e7863850eba871b2c0da9d635313b2bc01;hp=127445a0909c4193436ee7d0527dadda0474ab03;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/main_sp.h b/src/game_sp/main_sp.h index 127445a0..8aa3f7fc 100644 --- a/src/game_sp/main_sp.h +++ b/src/game_sp/main_sp.h @@ -6,6 +6,7 @@ /* ========================================================================= */ #include "../engines.h" +#include "../conf_gfx.h" /* ========================================================================= */ @@ -34,8 +35,14 @@ #define TILEX (ORIG_TILEX * ZOOM_FACTOR) #define TILEY (ORIG_TILEY * ZOOM_FACTOR) +#define ORIG_SCR_MENUX 20 +#define ORIG_SCR_MENUY 12 +#define SCR_MENUX 17 +#define SCR_MENUY 12 #define SCR_FIELDX 17 #define SCR_FIELDY 17 +#define MAX_BUF_XSIZE (2 + SCR_FIELDX + 2) +#define MAX_BUF_YSIZE (2 + SCR_FIELDY + 2) /* often used screen positions */ #define SX 8 @@ -43,6 +50,11 @@ #define SXSIZE (SCR_FIELDX * TILEX) #define SYSIZE (SCR_FIELDY * TILEY) +#define REAL_SX (SX - 2) +#define REAL_SY (SY - 2) +#define FULL_SXSIZE (2 + SXSIZE + 2) +#define FULL_SYSIZE (2 + SYSIZE + 2) + /* ------------------------------------------------------------------------- */ /* data structure definitions */ @@ -54,7 +66,11 @@ extern struct LevelInfo_SP native_sp_level; -extern struct GameInfo_SP game_sp; +extern Bitmap *screenBitmap; + +extern Bitmap *sp_objects; + +extern int GfxFrame[SP_MAX_PLAYFIELD_WIDTH][SP_MAX_PLAYFIELD_HEIGHT]; /* ------------------------------------------------------------------------- */