projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060502-1-src
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index fb264ac434a2f4a960fb50a032a90e48ff2d83b1..6dc458835bef9177d46d3f1caaf9d5d476228eed 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-265,12
+265,14
@@
void DrawTitleScreenImage(int nr)
if (width > WIN_XSIZE)
{
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)
{
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;
}
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;
boolean return_to_main_menu = FALSE;
boolean use_fading_main_menu = TRUE;
boolean use_cross_fading = TRUE;
- int fade_delay =
10
00;
- int post_delay =
500
;
+ int fade_delay =
5
00;
+ int post_delay =
fade_delay / 2
;
if (button == MB_MENU_INITIALIZE)
{
if (button == MB_MENU_INITIALIZE)
{
@@
-609,6
+611,8
@@
void HandleTitleScreen(int mx, int my, int dx, int dy, int button)
}
else
{
}
else
{
+ FadeSoundsAndMusic();
+
FadeOut(fade_delay, post_delay);
return_to_main_menu = TRUE;
FadeOut(fade_delay, post_delay);
return_to_main_menu = TRUE;