diff options
author | Torbjörn Andersson | 2005-05-12 13:12:15 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-12 13:12:15 +0000 |
commit | d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2 (patch) | |
tree | 38056f06dfb05964f15f120be8d9aaaf20f339b6 /sword2/driver/_mouse.cpp | |
parent | d6a20a231b30242645860f453895f11d67a624e5 (diff) | |
download | scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.gz scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.tar.bz2 scummvm-rg350-d34e5fc605b06c0ad8f5ac7e6ccbc6f8698ddec2.zip |
Whitespace: "(type *)something" instead of "(type *) something", because
that's how we write it in most other places.
svn-id: r18069
Diffstat (limited to 'sword2/driver/_mouse.cpp')
-rw-r--r-- | sword2/driver/_mouse.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sword2/driver/_mouse.cpp b/sword2/driver/_mouse.cpp index 3842434942..7e04c20aba 100644 --- a/sword2/driver/_mouse.cpp +++ b/sword2/driver/_mouse.cpp @@ -122,7 +122,7 @@ void Mouse::drawMouse() { memset(mouseData, 0, mouse_width * mouse_height); if (_luggageAnim) - decompressMouse(mouseData, (byte *) _luggageAnim + READ_LE_UINT32(_luggageOffset), _luggageAnim->mousew, + decompressMouse(mouseData, (byte *)_luggageAnim + READ_LE_UINT32(_luggageOffset), _luggageAnim->mousew, _luggageAnim->mouseh, mouse_width, deltaX, deltaY); if (_mouseAnim) @@ -144,7 +144,7 @@ int32 Mouse::animateMouse() { if (++_mouseFrame == _mouseAnim->noAnimFrames) _mouseFrame = MOUSEFLASHFRAME; - _mouseSprite = (byte *) _mouseAnim + READ_LE_UINT32(_mouseOffsets + _mouseFrame); + _mouseSprite = (byte *)_mouseAnim + READ_LE_UINT32(_mouseOffsets + _mouseFrame); if (_mouseFrame != prevMouseFrame) drawMouse(); @@ -172,12 +172,12 @@ int32 Mouse::setMouseAnim(byte *ma, int32 size, int32 mouseFlash) { else _mouseFrame = MOUSEFLASHFRAME; - _mouseAnim = (MouseAnim *) malloc(size); + _mouseAnim = (MouseAnim *)malloc(size); if (!_mouseAnim) return RDERR_OUTOFMEMORY; - memcpy((byte *) _mouseAnim, ma, size); - _mouseOffsets = (int32 *) ((byte *) _mouseAnim + sizeof(MouseAnim)); + memcpy((byte *)_mouseAnim, ma, size); + _mouseOffsets = (int32 *)((byte *)_mouseAnim + sizeof(MouseAnim)); animateMouse(); drawMouse(); @@ -207,12 +207,12 @@ int32 Mouse::setLuggageAnim(byte *ma, int32 size) { } if (ma) { - _luggageAnim = (MouseAnim *) malloc(size); + _luggageAnim = (MouseAnim *)malloc(size); if (!_luggageAnim) return RDERR_OUTOFMEMORY; - memcpy((byte *) _luggageAnim, ma, size); - _luggageOffset = (int32 *) ((byte *) _luggageAnim + sizeof(MouseAnim)); + memcpy((byte *)_luggageAnim, ma, size); + _luggageOffset = (int32 *)((byte *)_luggageAnim + sizeof(MouseAnim)); animateMouse(); drawMouse(); |