projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added preprocessor macro for enhanced readability of some code parts
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index 3b51f91df0b2cb32f5ac5aa35f7fb2000d7bb9f2..fb209d30c3b9b919a92cb814c871ccc884a4395d 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-93,8
+93,10
@@
#define TOUCH_DROP_DISTANCE_DEFAULT 5
#define TOUCH_DROP_DISTANCE_DEFAULT 5
-/* values for s
creen keyboard on
mobile devices */
+/* values for s
pecial settings for
mobile devices */
#if defined(PLATFORM_ANDROID)
#if defined(PLATFORM_ANDROID)
+#define USE_TOUCH_INPUT_OVERLAY
+#define USE_COMPLETE_DISPLAY
#define HAS_SCREEN_KEYBOARD
#define SCREEN_KEYBOARD_POS(h) ((h) / 2)
#endif
#define HAS_SCREEN_KEYBOARD
#define SCREEN_KEYBOARD_POS(h) ((h) / 2)
#endif
@@
-758,6
+760,9
@@
struct ProgramInfo
char *(*window_title_function)(void);
void (*exit_message_function)(char *, va_list);
void (*exit_function)(int);
char *(*window_title_function)(void);
void (*exit_message_function)(char *, va_list);
void (*exit_function)(int);
+
+ boolean global_scores;
+ boolean many_scores_per_name;
};
struct OptionInfo
};
struct OptionInfo
@@
-777,6
+782,7
@@
struct OptionInfo
char *special_flags;
char *special_flags;
+ boolean mytapes;
boolean serveronly;
boolean network;
boolean verbose;
boolean serveronly;
boolean network;
boolean verbose;
@@
-910,6
+916,11
@@
struct GfxInfo
int cursor_mode;
};
int cursor_mode;
};
+struct OverlayInfo
+{
+ boolean active;
+};
+
struct JoystickInfo
{
int status;
struct JoystickInfo
{
int status;
@@
-1373,6
+1384,7
@@
extern struct OptionInfo options;
extern struct VideoSystemInfo video;
extern struct AudioSystemInfo audio;
extern struct GfxInfo gfx;
extern struct VideoSystemInfo video;
extern struct AudioSystemInfo audio;
extern struct GfxInfo gfx;
+extern struct OverlayInfo overlay;
extern struct AnimInfo anim;
extern struct ArtworkInfo artwork;
extern struct JoystickInfo joystick;
extern struct AnimInfo anim;
extern struct ArtworkInfo artwork;
extern struct JoystickInfo joystick;
@@
-1406,6
+1418,7
@@
extern int FrameCounter;
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
int);
void InitProgramInfo(char *, char *, char *, char *, char *, char *, char *,
int);
+void InitScoresInfo();
void SetWindowTitle();
void InitWindowTitleFunction(char *(*window_title_function)(void));
void SetWindowTitle();
void InitWindowTitleFunction(char *(*window_title_function)(void));
@@
-1427,6
+1440,9
@@
void InitGfxDrawGlobalAnimFunction(void (*draw_global_anim_function)(int, int));
void InitGfxDrawGlobalBorderFunction(void (*draw_global_border_function)(int));
void InitGfxCustomArtworkInfo();
void InitGfxOtherSettings();
void InitGfxDrawGlobalBorderFunction(void (*draw_global_border_function)(int));
void InitGfxCustomArtworkInfo();
void InitGfxOtherSettings();
+void InitOverlayInfo();
+void SetOverlayActive(boolean);
+boolean GetOverlayActive();
void SetDrawDeactivationMask(int);
void SetDrawBackgroundMask(int);
void SetWindowBackgroundBitmap(Bitmap *);
void SetDrawDeactivationMask(int);
void SetDrawBackgroundMask(int);
void SetWindowBackgroundBitmap(Bitmap *);