summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-31 07:09:13 +0000
committertron <tron@openttd.org>2006-08-31 07:09:13 +0000
commit85bd6c05de745c9ce3a4637febd0d9d62aa25673 (patch)
tree51091352ce0235d399a53c63c13d9b1b33c9bfa0
parentb536c2e4e0cba87353d84d959f4e6dbbf1dc8297 (diff)
downloadopenttd-85bd6c05de745c9ce3a4637febd0d9d62aa25673.tar.xz
(svn r6253) Comment out code with #if 0, not //. Join statements which needlessly span many lines into fewer lines
-rw-r--r--music_gui.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/music_gui.c b/music_gui.c
index 94107cb6b..79d443169 100644
--- a/music_gui.c
+++ b/music_gui.c
@@ -223,7 +223,9 @@ static void MusicTrackSelectionWndProc(Window *w, WindowEvent *e)
}
DrawStringCentered(216, 45+8*6+16, STR_01F0_CLEAR, 0);
- //DrawStringCentered(216, 45+8*6+16*2, STR_01F1_SAVE, 0);
+#if 0
+ DrawStringCentered(216, 45 + 8 * 6 + 16 * 2, STR_01F1_SAVE, 0);
+#endif
y = 23;
for (p = _playlists[msf.playlist], i = 0; (i = *p) != 0; p++) {
@@ -313,7 +315,9 @@ static const Widget _music_track_selection_widgets[] = {
{ WWT_PUSHIMGBTN, RESIZE_NONE, 14, 186, 245, 76, 83, 0x0, STR_01F6_SELECT_CUSTOM_1_USER_DEFINED},
{ WWT_PUSHIMGBTN, RESIZE_NONE, 14, 186, 245, 84, 91, 0x0, STR_01F7_SELECT_CUSTOM_2_USER_DEFINED},
{ WWT_PUSHIMGBTN, RESIZE_NONE, 14, 186, 245, 108, 115, 0x0, STR_01F8_CLEAR_CURRENT_PROGRAM_CUSTOM1},
-//{ WWT_PUSHIMGBTN, RESIZE_NONE, 14, 186, 245, 124, 131, 0x0, STR_01F9_SAVE_MUSIC_SETTINGS},
+#if 0
+{ WWT_PUSHIMGBTN, RESIZE_NONE, 14, 186, 245, 124, 131, 0x0, STR_01F9_SAVE_MUSIC_SETTINGS},
+#endif
{ WIDGETS_END},
};
@@ -388,19 +392,13 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e)
DrawFrameRect(108, 23, 174, 26, 14, FR_LOWERED);
DrawFrameRect(214, 23, 280, 26, 14, FR_LOWERED);
- DrawFrameRect(108 + (msf.music_vol>>1),
- 22,
- 111 + (msf.music_vol>>1),
- 28,
- 14,
- 0);
-
- DrawFrameRect(214 + (msf.effect_vol>>1),
- 22,
- 217 + (msf.effect_vol>>1),
- 28,
- 14,
- 0);
+ DrawFrameRect(
+ 108 + msf.music_vol / 2, 22, 111 + msf.music_vol / 2, 28, 14, 0
+ );
+
+ DrawFrameRect(
+ 214 + msf.effect_vol / 2, 22, 217 + msf.effect_vol / 2, 28, 14, 0
+ );
} break;
case WE_CLICK: