#include "android.h"
#endif
-#if defined(TARGET_SDL)
#include "sdl.h"
-#elif defined(TARGET_X11)
-#include "x11.h"
-#endif
/* the additional 'b' is needed for Win32 to open files in binary mode */
REDRAW_MICROLEVEL)
#define REDRAW_FPS (1 << 11)
-#if defined(TARGET_X11)
-/* on old-style, classic and potentially slow graphics systems, redraw single
- tiles instead of the whole playfield unless a certain threshold is reached;
- when using the X11 target, this method should still be fast on all systems */
-#define REDRAWTILES_THRESHOLD (SCR_FIELDX * SCR_FIELDY / 2)
-#else
-/* on modern graphics systems and when using the SDL target, this tile redraw
+/* on modern graphics systems and when using the SDL target, the old tile redraw
optimization can slow things down a lot due to many small blits compared to
one single playfield-sized blit (especially observed on Mac OS X with SDL) */
#define REDRAWTILES_THRESHOLD 0
-#endif
#define IN_GFX_FIELD_PLAY(x, y) (x >= gfx.sx && x < gfx.sx + gfx.sxsize && \
y >= gfx.sy && y < gfx.sy + gfx.sysize)
char *window_title;
char *icon_title;
- char *x11_icon_filename;
- char *x11_iconmask_filename;
char *sdl_icon_filename;
char *cookie_prefix;
- char *filename_prefix; /* prefix to cut off from DOS filenames */
char *error_filename; /* filename where to write error messages to */
FILE *error_file; /* (used instead of 'stderr' on some systems) */
int version_major;
int version_minor;
int version_patch;
+ int version_build;
+ int version_ident;
char *(*window_title_function)(void);
void (*exit_message_function)(char *, va_list);
int num_chars;
int num_chars_per_line;
-
-#if defined(TARGET_X11_NATIVE_PERFORMANCE_WORKAROUND)
- Pixmap *clip_mask; /* single-char-only clip mask array for X11 */
-#endif
};
struct GfxInfo
int full_sxsize, full_sysize;
int scrollbuffer_width, scrollbuffer_height;
+ int game_tile_size, standard_tile_size;
+
int dx, dy;
int dxsize, dysize;
/* function definitions */
-#if 1
-void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
- char *, char *, char *, int);
-#else
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
- char *, char *, char *, char *, char *, int);
-#endif
+ int);
void SetWindowTitle();
void ClosePlatformDependentStuff(void);
void InitGfxFieldInfo(int, int, int, int, int, int, int, int, Bitmap *);
+void InitGfxTileSizeInfo(int, int);
void InitGfxDoor1Info(int, int, int, int);
void InitGfxDoor2Info(int, int, int, int);
void InitGfxDoor3Info(int, int, int, int);
void ReloadCustomImage(Bitmap *, char *);
Bitmap *ZoomBitmap(Bitmap *, int, int);
-void CreateBitmapWithSmallBitmaps(Bitmap *, int);
+void CreateBitmapWithSmallBitmaps(Bitmap *, int, int);
void ScaleBitmap(Bitmap *, int);
void SetMouseCursor(int);