diff options
author | Jody Northup | 2009-06-05 06:41:04 +0000 |
---|---|---|
committer | Jody Northup | 2009-06-05 06:41:04 +0000 |
commit | f8361b5c53b96faddb56024bb932ce46b7005dbf (patch) | |
tree | 54235722ffac47e02e855778f129a9665481a00d /graphics/cursorman.cpp | |
parent | 1f43d9b860b9c1a6d5e62cc261ff5da94b42d50e (diff) | |
download | scummvm-rg350-f8361b5c53b96faddb56024bb932ce46b7005dbf.tar.gz scummvm-rg350-f8361b5c53b96faddb56024bb932ce46b7005dbf.tar.bz2 scummvm-rg350-f8361b5c53b96faddb56024bb932ce46b7005dbf.zip |
Converted cursor code to use 16-bit.
svn-id: r41191
Diffstat (limited to 'graphics/cursorman.cpp')
-rw-r--r-- | graphics/cursorman.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp index fe5f653b94..f303749572 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -108,7 +108,11 @@ void CursorManager::replaceCursor(const byte *buf, uint w, uint h, int hotspotX, } Cursor *cur = _cursorStack.top(); +#ifdef ENABLE_16BIT + uint size = w * h * 2; +#else uint size = w * h; +#endif if (cur->_size < size) { delete[] cur->_data; |