void DrawMaskedBorder(int redraw_mask)
{
/* do not draw masked screen borders when displaying title screens */
- if (effectiveGameStatus() == GAME_MODE_TITLE)
+ if (effectiveGameStatus() == GAME_MODE_TITLE ||
+ effectiveGameStatus() == GAME_MODE_MESSAGE)
return;
if (redraw_mask & REDRAW_ALL)
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)
- SetMainBackgroundImage(graphic);
+ SetMainBackgroundBitmap(graphic_info[graphic].bitmap);
}
void SetMainBackgroundImage(int graphic)
if (music == MUS_UNDEFINED)
return;
+ if (!setup.sound_music)
+ return;
+
PlayMusic(music);
}
+void PlaySoundActivating()
+{
+#if 0
+ PlaySound(SND_MENU_ITEM_ACTIVATING);
+#endif
+}
+
+void PlaySoundSelecting()
+{
+#if 0
+ PlaySound(SND_MENU_ITEM_SELECTING);
+#endif
+}
+
void ToggleFullscreenIfNeeded()
{
boolean change_fullscreen = (setup.fullscreen !=