projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20061230-1-src
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index e2298073706e56c09534db931d86f4f3a32e8b30..e7670d2756048c6e5a0185160197c63f9171fe50 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-19,6
+19,7
@@
#include "cartoons.h"
#include "network.h"
#include "tape.h"
#include "cartoons.h"
#include "network.h"
#include "tape.h"
+#include "screens.h"
/* select level set with EMC X11 graphics before activating EM GFX debugging */
/* select level set with EMC X11 graphics before activating EM GFX debugging */
@@
-240,6
+241,11
@@
void DrawMaskedBorder_ALL()
void DrawMaskedBorder(int redraw_mask)
{
void DrawMaskedBorder(int redraw_mask)
{
+ /* do not draw masked screen borders when displaying title screens */
+ if (effectiveGameStatus() == GAME_MODE_TITLE ||
+ effectiveGameStatus() == GAME_MODE_MESSAGE)
+ return;
+
if (redraw_mask & REDRAW_ALL)
DrawMaskedBorder_ALL();
else
if (redraw_mask & REDRAW_ALL)
DrawMaskedBorder_ALL();
else
@@
-582,10
+588,16
@@
void FadeCrossSaveBackbuffer()
BlitBitmap(backbuffer, bitmap_db_cross, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
}
BlitBitmap(backbuffer, bitmap_db_cross, 0, 0, WIN_XSIZE, WIN_YSIZE, 0, 0);
}
+void SetWindowBackgroundImageIfDefined(int graphic)
+{
+ if (graphic_info[graphic].bitmap)
+ SetWindowBackgroundBitmap(graphic_info[graphic].bitmap);
+}
+
void SetMainBackgroundImageIfDefined(int graphic)
{
if (graphic_info[graphic].bitmap)
void SetMainBackgroundImageIfDefined(int graphic)
{
if (graphic_info[graphic].bitmap)
- SetMainBackground
Image(graphic
);
+ SetMainBackground
Bitmap(graphic_info[graphic].bitmap
);
}
void SetMainBackgroundImage(int graphic)
}
void SetMainBackgroundImage(int graphic)
@@
-6181,9
+6193,22
@@
void PlayMenuMusic()
if (music == MUS_UNDEFINED)
return;
if (music == MUS_UNDEFINED)
return;
+ if (!setup.sound_music)
+ return;
+
PlayMusic(music);
}
PlayMusic(music);
}
+void PlaySoundActivating()
+{
+ PlaySound(SND_MENU_ITEM_ACTIVATING);
+}
+
+void PlaySoundSelecting()
+{
+ PlaySound(SND_MENU_ITEM_SELECTING);
+}
+
void ToggleFullscreenIfNeeded()
{
boolean change_fullscreen = (setup.fullscreen !=
void ToggleFullscreenIfNeeded()
{
boolean change_fullscreen = (setup.fullscreen !=