diff options
Diffstat (limited to 'sword2/driver')
-rw-r--r-- | sword2/driver/_mouse.cpp | 2 | ||||
-rw-r--r-- | sword2/driver/d_draw.cpp | 1 | ||||
-rw-r--r-- | sword2/driver/d_draw.h | 2 | ||||
-rw-r--r-- | sword2/driver/d_sound.cpp | 2 | ||||
-rw-r--r-- | sword2/driver/driver96.h | 6 |
5 files changed, 6 insertions, 7 deletions
diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp index 8da4538daf..8216c5fa07 100644 --- a/sword2/driver/_mouse.cpp +++ b/sword2/driver/_mouse.cpp @@ -52,7 +52,7 @@ void LogMouseEvent(uint16 buttons) { // We need to leave the one, which is the current event, alone! if (mouseBacklog == MAX_MOUSE_EVENTS - 1) return; - + me = &mouseLog[(mouseBacklog + mouseLogPos) % MAX_MOUSE_EVENTS]; me->buttons = buttons; mouseBacklog++; diff --git a/sword2/driver/d_draw.cpp b/sword2/driver/d_draw.cpp index e5ec0ba705..8ccb28ab56 100644 --- a/sword2/driver/d_draw.cpp +++ b/sword2/driver/d_draw.cpp @@ -87,7 +87,6 @@ void Display::setRenderLevel(int8 level) { } } - /** * Fill the screen buffer with palette colour zero. Note that it does not * touch the menu areas of the screen. diff --git a/sword2/driver/d_draw.h b/sword2/driver/d_draw.h index 9fe87e16ab..cea1941ad6 100644 --- a/sword2/driver/d_draw.h +++ b/sword2/driver/d_draw.h @@ -236,7 +236,7 @@ public: int32 openLightMask(_spriteInfo *s); int32 closeLightMask(void); }; - + } // End of namespace Sword2 #endif diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp index 2794f45989..c86a14193a 100644 --- a/sword2/driver/d_sound.cpp +++ b/sword2/driver/d_sound.cpp @@ -682,7 +682,7 @@ int32 Sound::playFx(int32 id, uint8 *data, uint8 vol, int8 pan, uint8 type) { return RDERR_FXFUCKED; } _fx[i]._flags &= ~SoundMixer::FLAG_LOOP; - + byte volume = _musicMuted ? 0 : musicVolTable[_musicVol]; g_engine->_mixer->playRaw(&_fx[i]._handle, _fx[i]._buf, _fx[i]._bufSize, _fx[i]._rate, _fx[i]._flags, -1, volume, 0); diff --git a/sword2/driver/driver96.h b/sword2/driver/driver96.h index 2e56e39cc8..fde513ba77 100644 --- a/sword2/driver/driver96.h +++ b/sword2/driver/driver96.h @@ -39,7 +39,7 @@ namespace Sword2 { #define _MAX_PATH 260 #endif - + //Generic error codes #define RD_OK 0x00000000 #define RDERR_UNKNOWN 0x00000001 @@ -147,7 +147,7 @@ namespace Sword2 { //Menubar defines. #define RDMENU_TOP 0x00 #define RDMENU_BOTTOM 0x01 - + #define RDMENU_HIDDEN 0x00 #define RDMENU_SHOWN 0x01 #define RDMENU_OPENING 0x02 @@ -169,7 +169,7 @@ namespace Sword2 { #define RDSE_FXLEADIN 2 #define RDSE_FXLEADOUT 3 #define RDSE_QUIET 1 -#define RDSE_SPEAKING 0 +#define RDSE_SPEAKING 0 #define RDPAL_FADE 0 |