#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 network server settings */
+#define STR_NETWORK_AUTO_DETECT "auto_detect_network_server"
+#define STR_NETWORK_AUTO_DETECT_SETUP "(auto detect network server)"
+
/* values for touch control */
#define TOUCH_CONTROL_OFF "off"
#define TOUCH_CONTROL_VIRTUAL_BUTTONS "virtual_buttons"
#define MENU_FRAME_DELAY 20 /* frame delay in milliseconds */
#define GAME_FRAME_DELAY 20 /* frame delay in milliseconds */
#define FFWD_FRAME_DELAY 10 /* 200% speed for fast forward */
+#define MIN_VSYNC_FRAME_DELAY 15 /* minimum value for vsync to keep */
+#define MAX_VSYNC_FRAME_DELAY 16 /* maximum value for vsync to work */
#define FRAMES_PER_SECOND (ONE_SECOND_DELAY / GAME_FRAME_DELAY)
#define FRAMES_PER_SECOND_SP 35
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 ask_on_game_over;
boolean quick_switch;
boolean input_on_focus;
boolean prefer_aga_graphics;
+ boolean game_speed_extended;
int game_frame_delay;
boolean sp_show_border_elements;
boolean small_game_graphics;
boolean network_mode;
int network_player_nr;
+ char *network_server_hostname;
struct SetupAutoSetupInfo auto_setup;
struct SetupEditorInfo editor;
char *text;
};
+struct StringValueTextInfo
+{
+ char *value;
+ char *text;
+};
+
struct ConfigInfo
{
char *token;