aboutsummaryrefslogtreecommitdiff
path: root/graphics/cursorman.h
diff options
context:
space:
mode:
authorJody Northup2009-07-08 16:07:58 +0000
committerJody Northup2009-07-08 16:07:58 +0000
commit828ed66555b99363fed62b4cbb83c36de68c3024 (patch)
tree954ef2912744813160ed95984808ac21c2b68a17 /graphics/cursorman.h
parent3e47aaa151ff751af867c57344b063c30f5f75f3 (diff)
downloadscummvm-rg350-828ed66555b99363fed62b4cbb83c36de68c3024.tar.gz
scummvm-rg350-828ed66555b99363fed62b4cbb83c36de68c3024.tar.bz2
scummvm-rg350-828ed66555b99363fed62b4cbb83c36de68c3024.zip
Reinstated static inline Graphics::PixelFormat::createFormatCLUT8(), which I am told was not supposed to be removed with the others.
svn-id: r42268
Diffstat (limited to 'graphics/cursorman.h')
-rw-r--r--graphics/cursorman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/cursorman.h b/graphics/cursorman.h
index b67241ab7b..ae7008f54c 100644
--- a/graphics/cursorman.h
+++ b/graphics/cursorman.h
@@ -181,13 +181,13 @@ private:
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)
- _format = Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0);
+ _format = Graphics::PixelFormat::createFormatCLUT8();
else
_format = *format;
_size = w * h * _format.bytesPerPixel;
_keycolor &= ((1 << (_format.bytesPerPixel << 3)) - 1);
#else
- _format = Graphics::PixelFormat(1, 8, 8, 8, 8, 0, 0, 0, 0);
+ _format = Graphics::PixelFormat::createFormatCLUT8();
_size = w * h;
_keycolor &= 0xFF;
#endif