diff options
author | Johannes Schickel | 2009-06-10 15:20:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-06-10 15:20:52 +0000 |
commit | c0ba9d11589edd9183e068ae94ad016a365c4f34 (patch) | |
tree | 836486630fea5246f36bb67595ae77859f67f443 /graphics/cursorman.cpp | |
parent | be42f800a448798819b5ccedbb0a2aca3133730f (diff) | |
download | scummvm-rg350-c0ba9d11589edd9183e068ae94ad016a365c4f34.tar.gz scummvm-rg350-c0ba9d11589edd9183e068ae94ad016a365c4f34.tar.bz2 scummvm-rg350-c0ba9d11589edd9183e068ae94ad016a365c4f34.zip |
Add a convenience wrapper to CursorMan for checking whether cursor palettes are supported.
svn-id: r41432
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 462897ac57..2e71b548bc 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -129,6 +129,10 @@ void CursorManager::replaceCursor(const byte *buf, uint w, uint h, int hotspotX, g_system->setMouseCursor(cur->_data, w, h, hotspotX, hotspotY, keycolor, targetScale); } +bool CursorManager::supportsCursorPalettes() { + return g_system->hasFeature(OSystem::kFeatureCursorHasPalette); +} + void CursorManager::disableCursorPalette(bool disable) { if (!g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) return; |