X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=487793f03bdc51982684b5dd84154733dc50ef3c;hb=6f20c46794de2b6e936f9f9ea46f893a059ffd47;hp=80105139166562655fc35c9846d8cdee90e41e10;hpb=b06464b4dc26c0e31ef0bca48b31a4dfbdd549e6;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index 80105139..487793f0 100644 --- a/src/files.c +++ b/src/files.c @@ -11347,25 +11347,26 @@ void SaveScore(int nr) #define SETUP_TOKEN_FULLSCREEN 17 #define SETUP_TOKEN_FULLSCREEN_MODE 18 #define SETUP_TOKEN_WINDOW_SCALING_PERCENT 19 -#define SETUP_TOKEN_ASK_ON_ESCAPE 20 -#define SETUP_TOKEN_ASK_ON_ESCAPE_EDITOR 21 -#define SETUP_TOKEN_QUICK_SWITCH 22 -#define SETUP_TOKEN_INPUT_ON_FOCUS 23 -#define SETUP_TOKEN_PREFER_AGA_GRAPHICS 24 -#define SETUP_TOKEN_GAME_FRAME_DELAY 25 -#define SETUP_TOKEN_SP_SHOW_BORDER_ELEMENTS 26 -#define SETUP_TOKEN_SMALL_GAME_GRAPHICS 27 -#define SETUP_TOKEN_GRAPHICS_SET 28 -#define SETUP_TOKEN_SOUNDS_SET 29 -#define SETUP_TOKEN_MUSIC_SET 30 -#define SETUP_TOKEN_OVERRIDE_LEVEL_GRAPHICS 31 -#define SETUP_TOKEN_OVERRIDE_LEVEL_SOUNDS 32 -#define SETUP_TOKEN_OVERRIDE_LEVEL_MUSIC 33 -#define SETUP_TOKEN_VOLUME_SIMPLE 34 -#define SETUP_TOKEN_VOLUME_LOOPS 35 -#define SETUP_TOKEN_VOLUME_MUSIC 36 - -#define NUM_GLOBAL_SETUP_TOKENS 37 +#define SETUP_TOKEN_WINDOW_SCALING_QUALITY 20 +#define SETUP_TOKEN_ASK_ON_ESCAPE 21 +#define SETUP_TOKEN_ASK_ON_ESCAPE_EDITOR 22 +#define SETUP_TOKEN_QUICK_SWITCH 23 +#define SETUP_TOKEN_INPUT_ON_FOCUS 24 +#define SETUP_TOKEN_PREFER_AGA_GRAPHICS 25 +#define SETUP_TOKEN_GAME_FRAME_DELAY 26 +#define SETUP_TOKEN_SP_SHOW_BORDER_ELEMENTS 27 +#define SETUP_TOKEN_SMALL_GAME_GRAPHICS 28 +#define SETUP_TOKEN_GRAPHICS_SET 29 +#define SETUP_TOKEN_SOUNDS_SET 30 +#define SETUP_TOKEN_MUSIC_SET 31 +#define SETUP_TOKEN_OVERRIDE_LEVEL_GRAPHICS 32 +#define SETUP_TOKEN_OVERRIDE_LEVEL_SOUNDS 33 +#define SETUP_TOKEN_OVERRIDE_LEVEL_MUSIC 34 +#define SETUP_TOKEN_VOLUME_SIMPLE 35 +#define SETUP_TOKEN_VOLUME_LOOPS 36 +#define SETUP_TOKEN_VOLUME_MUSIC 37 + +#define NUM_GLOBAL_SETUP_TOKENS 38 /* editor setup */ #define SETUP_TOKEN_EDITOR_EL_BOULDERDASH 0 @@ -11495,6 +11496,7 @@ static struct TokenInfo global_setup_tokens[] = { TYPE_SWITCH, &si.fullscreen, "fullscreen" }, { TYPE_STRING, &si.fullscreen_mode, "fullscreen_mode" }, { TYPE_INTEGER,&si.window_scaling_percent, "window_scaling_percent" }, + { TYPE_STRING, &si.window_scaling_quality, "window_scaling_quality" }, { TYPE_SWITCH, &si.ask_on_escape, "ask_on_escape" }, { TYPE_SWITCH, &si.ask_on_escape_editor, "ask_on_escape_editor" }, { TYPE_SWITCH, &si.quick_switch, "quick_player_switch" }, @@ -11667,6 +11669,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si) si->fullscreen = FALSE; si->fullscreen_mode = getStringCopy(DEFAULT_FULLSCREEN_MODE); si->window_scaling_percent = STD_WINDOW_SCALING_PERCENT; + si->window_scaling_quality = getStringCopy(SCALING_QUALITY_DEFAULT); si->ask_on_escape = TRUE; si->ask_on_escape_editor = TRUE; si->quick_switch = FALSE;