diff options
author | Jordi Vilalta Prat | 2009-06-30 08:25:08 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2009-06-30 08:25:08 +0000 |
commit | 5e9285e8fa8eb2f0b01abc6caf93dc926f41d795 (patch) | |
tree | ae81b455ff96ee6c1bd7a3de178179a883c84b23 /graphics/cursorman.h | |
parent | 9e1916bcad3cc33a870bdbff5bd01b39e523492d (diff) | |
download | scummvm-rg350-5e9285e8fa8eb2f0b01abc6caf93dc926f41d795.tar.gz scummvm-rg350-5e9285e8fa8eb2f0b01abc6caf93dc926f41d795.tar.bz2 scummvm-rg350-5e9285e8fa8eb2f0b01abc6caf93dc926f41d795.zip |
Fixed a few formatting bits
svn-id: r41973
Diffstat (limited to 'graphics/cursorman.h')
-rw-r--r-- | graphics/cursorman.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/graphics/cursorman.h b/graphics/cursorman.h index 044a787e71..b744109b61 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -154,13 +154,10 @@ private: uint _size; Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, const Graphics::PixelFormat *format = NULL) { #ifdef ENABLE_RGB_COLOR - if (!format) - { + if (!format) { _size = w * h; _keycolor &= 0xFF; - } - else - { + } else { _size = w * h * format->bytesPerPixel; _keycolor &= ((1 << (format->bytesPerPixel << 3)) - 1); } |