aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 4c31314..377bb48 100644
--- a/src/options.c
+++ b/src/options.c
@@ -146,6 +146,14 @@ int optionsStep()
}
}
#endif
+
+ #ifdef _SDL
+ // Music volume
+ if(optCursor == 2) {
+ music_volume = (music_volume+1)%5;
+ PHL_MusicVolume(0.25f * music_volume);
+ }
+ #endif
//Back
if (optCursor == lastOption) {
@@ -252,6 +260,16 @@ void optionsDraw()
ydraw += ystep;
optioncount++;
#endif
+
+ #ifdef _SDL
+ // Music volume
+ PHL_DrawTextBold("MUSIC", xleft, ydraw, YELLOW);
+ char buff[50];
+ sprintf(buff, "%d%", music_volume*25);
+ PHL_DrawTextBold(buff, xright, ydraw, YELLOW);
+ ydraw += ystep;
+ optioncount++;
+ #endif
PHL_DrawTextBold("BACK", xleft, ydraw, YELLOW);