projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001201-1-src
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index b97c44a134777973bdf98284cb50733a7e7728ee..430273238aaf9370abb9fa738235b7a672f4b388 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-11,15
+11,14
@@
* screens.c *
***********************************************************/
* screens.c *
***********************************************************/
+#include "libgame/libgame.h"
+
#include "screens.h"
#include "events.h"
#include "screens.h"
#include "events.h"
-#include "sound.h"
#include "game.h"
#include "tools.h"
#include "editor.h"
#include "game.h"
#include "tools.h"
#include "editor.h"
-#include "misc.h"
#include "files.h"
#include "files.h"
-#include "buttons.h"
#include "tape.h"
#include "joystick.h"
#include "cartoons.h"
#include "tape.h"
#include "joystick.h"
#include "cartoons.h"
@@
-85,7
+84,7
@@
void DrawMainMenu()
UndrawSpecialEditorDoor();
/* needed if last screen was the setup screen and fullscreen state changed */
UndrawSpecialEditorDoor();
/* needed if last screen was the setup screen and fullscreen state changed */
-
ChangeVideoModeIfNeeded(
);
+
setup.fullscreen = ChangeVideoModeIfNeeded(setup.fullscreen
);
#ifdef TARGET_SDL
SetDrawtoField(DRAW_BACKBUFFER);
#endif
#ifdef TARGET_SDL
SetDrawtoField(DRAW_BACKBUFFER);
#endif
@@
-1409,7
+1408,7
@@
void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
{
int yy = y-1;
{
int yy = y-1;
- if (y == 3 &&
sysinfo.audio
_available)
+ if (y == 3 &&
audio.sound
_available)
{
if (setup.sound)
{
{
if (setup.sound)
{
@@
-1423,7
+1422,7
@@
void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
setup.sound = !setup.sound;
}
DrawText(SX+14*32, SY+yy*32,"on ",FS_BIG,FC_YELLOW);
setup.sound = !setup.sound;
}
- else if (y == 4 &&
sysinfo.audio_
loops_available)
+ else if (y == 4 &&
audio.
loops_available)
{
if (setup.sound_loops)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
{
if (setup.sound_loops)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
@@
-1435,7
+1434,7
@@
void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
}
setup.sound_loops = !setup.sound_loops;
}
}
setup.sound_loops = !setup.sound_loops;
}
- else if (y == 5 &&
sysinfo.audio_
loops_available)
+ else if (y == 5 &&
audio.
loops_available)
{
if (setup.sound_music)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
{
if (setup.sound_music)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
@@
-1500,7
+1499,7
@@
void HandleSetupScreen(int mx, int my, int dx, int dy, int button)
setup.fading = !setup.fading;
}
#endif
setup.fading = !setup.fading;
}
#endif
- else if (y == 8 && fullscreen_available)
+ else if (y == 8 &&
video.
fullscreen_available)
{
if (setup.fullscreen)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);
{
if (setup.fullscreen)
DrawText(SX+14*32, SY+yy*32,"off",FS_BIG,FC_BLUE);