diff options
author | Max Horn | 2009-09-30 16:16:53 +0000 |
---|---|---|
committer | Max Horn | 2009-09-30 16:16:53 +0000 |
commit | 8ba75fc522f16844524dd4d6f88c3851e2402969 (patch) | |
tree | df25c20389e3e706d508f37914dedc73c6479f00 /backends/platform/gp2xwiz/gp2xwiz-hw.cpp | |
parent | 25dde91c7c6c7da52636e3daa34bd9eee5d9dcb9 (diff) | |
download | scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.gz scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.bz2 scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.zip |
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-hw.cpp')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-hw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/gp2xwiz/gp2xwiz-hw.cpp b/backends/platform/gp2xwiz/gp2xwiz-hw.cpp index 4a86443aa7..bc1aa00ce4 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-hw.cpp +++ b/backends/platform/gp2xwiz/gp2xwiz-hw.cpp @@ -65,8 +65,8 @@ void mixerMoveVolume(int direction) { if (direction == VOLUME_UP) volumeLevel += VOLUME_CHANGE_RATE/2; if (direction == VOLUME_DOWN) volumeLevel -= VOLUME_CHANGE_RATE/2; } else { - if(direction == VOLUME_UP) volumeLevel += VOLUME_CHANGE_RATE; - if(direction == VOLUME_DOWN) volumeLevel -= VOLUME_CHANGE_RATE; + if (direction == VOLUME_UP) volumeLevel += VOLUME_CHANGE_RATE; + if (direction == VOLUME_DOWN) volumeLevel -= VOLUME_CHANGE_RATE; } if (volumeLevel < VOLUME_MIN) volumeLevel = VOLUME_MIN; @@ -74,7 +74,7 @@ void mixerMoveVolume(int direction) { unsigned long soundDev = open("/dev/mixer", O_RDWR); - if(soundDev) { + if (soundDev) { int vol = ((volumeLevel << 8) | volumeLevel); ioctl(soundDev, SOUND_MIXER_WRITE_PCM, &vol); close(soundDev); |