X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=6dc458835bef9177d46d3f1caaf9d5d476228eed;hb=ec942b1c9df306ed468fdc42ba3b5f7f0d9b330f;hp=fb264ac434a2f4a960fb50a032a90e48ff2d83b1;hpb=e6e7b00366bd426aaaad8f5175feabb0eafb4cb0;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index fb264ac4..6dc45883 100644 --- a/src/screens.c +++ b/src/screens.c @@ -265,12 +265,14 @@ void DrawTitleScreenImage(int nr) if (width > WIN_XSIZE) { + /* image width too large for window => center image horizontally */ src_x = (width - WIN_XSIZE) / 2; width = WIN_XSIZE; } if (height > WIN_YSIZE) { + /* image height too large for window => center image vertically */ src_y = (height - WIN_YSIZE) / 2; height = WIN_YSIZE; } @@ -565,8 +567,8 @@ void HandleTitleScreen(int mx, int my, int dx, int dy, int button) boolean return_to_main_menu = FALSE; boolean use_fading_main_menu = TRUE; boolean use_cross_fading = TRUE; - int fade_delay = 1000; - int post_delay = 500; + int fade_delay = 500; + int post_delay = fade_delay / 2; if (button == MB_MENU_INITIALIZE) { @@ -609,6 +611,8 @@ void HandleTitleScreen(int mx, int my, int dx, int dy, int button) } else { + FadeSoundsAndMusic(); + FadeOut(fade_delay, post_delay); return_to_main_menu = TRUE;