From 5e9285e8fa8eb2f0b01abc6caf93dc926f41d795 Mon Sep 17 00:00:00 2001 From: Jordi Vilalta Prat Date: Tue, 30 Jun 2009 08:25:08 +0000 Subject: Fixed a few formatting bits svn-id: r41973 --- graphics/cursorman.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'graphics/cursorman.h') 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); } -- cgit v1.2.3