From f8361b5c53b96faddb56024bb932ce46b7005dbf Mon Sep 17 00:00:00 2001 From: Jody Northup Date: Fri, 5 Jun 2009 06:41:04 +0000 Subject: Converted cursor code to use 16-bit. svn-id: r41191 --- graphics/cursorman.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics/cursorman.cpp') 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; -- cgit v1.2.3