From 1bbbbeeef19727639d80c9bfe760248d50720bc2 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Fri, 23 Feb 2007 12:56:10 +0000 Subject: (svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change. --- src/music_gui.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/music_gui.cpp') diff --git a/src/music_gui.cpp b/src/music_gui.cpp index 49d7b7ef8..143f252d9 100644 --- a/src/music_gui.cpp +++ b/src/music_gui.cpp @@ -422,12 +422,11 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e) case 5: // start playing msf.playing = true; break; - case 6:{ // volume sliders - byte *vol,new_vol; + case 6: { // volume sliders + byte *vol, new_vol; int x = e->we.click.pt.x - 88; - if (x < 0) - return; + if (x < 0) return; vol = &msf.music_vol; if (x >= 106) { @@ -435,7 +434,7 @@ static void MusicWindowWndProc(Window *w, WindowEvent *e) x -= 106; } - new_vol = min(max(x-21,0)*2,127); + new_vol = min(max(x - 21, 0) * 2, 127); if (new_vol != *vol) { *vol = new_vol; if (vol == &msf.music_vol) -- cgit v1.2.3-54-g00ecf