#define SPECIAL_RENDERING_DEFAULT SPECIAL_RENDERING_BITMAP
#endif
+/* values for vertical screen retrace synchronization (vsync) */
+#define STR_VSYNC_MODE_OFF "off"
+#define STR_VSYNC_MODE_NORMAL "normal"
+#define STR_VSYNC_MODE_ADAPTIVE "adaptive"
+
+#define STR_VSYNC_MODE_DEFAULT STR_VSYNC_MODE_OFF
+
+#define VSYNC_MODE_OFF 0
+#define VSYNC_MODE_NORMAL 1
+#define VSYNC_MODE_ADAPTIVE -1
+
+#define VSYNC_MODE_DEFAULT VSYNC_MODE_OFF
+
/* values for touch control */
#define TOUCH_CONTROL_OFF "off"
#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"
int window_scaling_percent;
char *window_scaling_quality;
int screen_rendering_mode;
+ int vsync_mode;
unsigned int frame_delay;
unsigned int frame_delay_value;
int window_scaling_percent;
char *window_scaling_quality;
char *screen_rendering_mode;
+ char *vsync_mode;
boolean ask_on_escape;
boolean ask_on_escape_editor;
boolean quick_switch;
char *, int);
void InitNetworkInfo(boolean, boolean, boolean, char *, int);
-void InitScoresInfo();
-void SetWindowTitle();
+void InitScoresInfo(void);
+void SetWindowTitle(void);
void InitWindowTitleFunction(char *(*window_title_function)(void));
void InitExitMessageFunction(void (*exit_message_function)(char *, va_list));
void InitGfxDrawGlobalAnimFunction(void (*draw_global_anim_function)(int, int));
void InitGfxDrawGlobalBorderFunction(void (*draw_global_border_function)(int));
void InitGfxDrawTileCursorFunction(void (*draw_tile_cursor_function)(int));
-void InitGfxCustomArtworkInfo();
-void InitGfxOtherSettings();
-void InitTileCursorInfo();
-void InitOverlayInfo();
+void InitGfxCustomArtworkInfo(void);
+void InitGfxOtherSettings(void);
+void InitTileCursorInfo(void);
+void InitOverlayInfo(void);
void SetTileCursorEnabled(boolean);
void SetTileCursorActive(boolean);
void SetTileCursorTargetXY(int, int);
void SetOverlayEnabled(boolean);
void SetOverlayActive(boolean);
void SetOverlayShowGrid(boolean);
-boolean GetOverlayActive();
+boolean GetOverlayActive(void);
void SetDrawDeactivationMask(int);
int GetDrawDeactivationMask(void);
void SetDrawBackgroundMask(int);
boolean DrawingDeactivatedField(void);
boolean DrawingDeactivated(int, int, int, int);
boolean DrawingOnBackground(int, int);
-boolean DrawingAreaChanged();
+boolean DrawingAreaChanged(void);
void BlitBitmapOnBackground(Bitmap *, Bitmap *, int, int, int, int, int, int);
void BlitTexture(Bitmap *, int, int, int, int, int, int);
void BlitTextureMasked(Bitmap *, int, int, int, int, int, int);
void KeyboardAutoRepeatOff(void);
boolean SetVideoMode(boolean);
void SetVideoFrameDelay(unsigned int);
-unsigned int GetVideoFrameDelay();
+unsigned int GetVideoFrameDelay(void);
boolean ChangeVideoModeIfNeeded(boolean);
Bitmap *LoadImage(char *);
void CheckQuitEvent(void);
Key GetEventKey(KeyEvent *, boolean);
KeyMod HandleKeyModState(Key, int);
-KeyMod GetKeyModState();
-KeyMod GetKeyModStateFromEvents();
+KeyMod GetKeyModState(void);
+KeyMod GetKeyModStateFromEvents(void);
void StartTextInput(int, int, int, int);
-void StopTextInput();
+void StopTextInput(void);
boolean CheckCloseWindowEvent(ClientMessageEvent *);
-void InitJoysticks();
+void InitJoysticks(void);
boolean ReadJoystick(int, int *, int *, boolean *, boolean *);
boolean CheckJoystickOpened(int);
-void ClearJoystickState();
+void ClearJoystickState(void);
#endif /* SYSTEM_H */