From 91b889e2d36baf8a8e1f56f05f4d063e5ae79849 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 3 Jun 2011 23:30:55 +0200 Subject: COMMON: Rename kFeatureCursorHasPalette -> kFeatureCursorPalette --- graphics/cursorman.cpp | 12 ++++++------ graphics/cursorman.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'graphics') diff --git a/graphics/cursorman.cpp b/graphics/cursorman.cpp index 297b583d54..3d21e49e2d 100644 --- a/graphics/cursorman.cpp +++ b/graphics/cursorman.cpp @@ -86,7 +86,7 @@ void CursorManager::popAllCursors() { delete cur; } - if (g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) { + if (g_system->hasFeature(OSystem::kFeatureCursorPalette)) { while (!_cursorPaletteStack.empty()) { Palette *pal = _cursorPaletteStack.pop(); delete pal; @@ -141,11 +141,11 @@ void CursorManager::replaceCursor(const byte *buf, uint w, uint h, int hotspotX, } bool CursorManager::supportsCursorPalettes() { - return g_system->hasFeature(OSystem::kFeatureCursorHasPalette); + return g_system->hasFeature(OSystem::kFeatureCursorPalette); } void CursorManager::disableCursorPalette(bool disable) { - if (!g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) + if (!g_system->hasFeature(OSystem::kFeatureCursorPalette)) return; if (_cursorPaletteStack.empty()) @@ -158,7 +158,7 @@ void CursorManager::disableCursorPalette(bool disable) { } void CursorManager::pushCursorPalette(const byte *colors, uint start, uint num) { - if (!g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) + if (!g_system->hasFeature(OSystem::kFeatureCursorPalette)) return; Palette *pal = new Palette(colors, start, num); @@ -171,7 +171,7 @@ void CursorManager::pushCursorPalette(const byte *colors, uint start, uint num) } void CursorManager::popCursorPalette() { - if (!g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) + if (!g_system->hasFeature(OSystem::kFeatureCursorPalette)) return; if (_cursorPaletteStack.empty()) @@ -194,7 +194,7 @@ void CursorManager::popCursorPalette() { } void CursorManager::replaceCursorPalette(const byte *colors, uint start, uint num) { - if (!g_system->hasFeature(OSystem::kFeatureCursorHasPalette)) + if (!g_system->hasFeature(OSystem::kFeatureCursorPalette)) return; if (_cursorPaletteStack.empty()) { diff --git a/graphics/cursorman.h b/graphics/cursorman.h index 1e7ce83611..543a5d0a5c 100644 --- a/graphics/cursorman.h +++ b/graphics/cursorman.h @@ -108,9 +108,9 @@ public: * Test whether cursor palettes are supported. * * This is just an convenience wrapper for checking for - * OSystem::kFeatureCursorHasPalette to be supported by OSystem. + * OSystem::kFeatureCursorPalette to be supported by OSystem. * - * @see OSystem::kFeatureCursorHasPalette + * @see OSystem::kFeatureCursorPalette * @see OSystem::hasFeature */ bool supportsCursorPalettes(); -- cgit v1.2.3