[Scummvm-cvs-logs] SF.net SVN: scummvm:[41432] scummvm/trunk/graphics

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Jun 10 17:20:52 CEST 2009


Revision: 41432
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41432&view=rev
Author:   lordhoto
Date:     2009-06-10 15:20:52 +0000 (Wed, 10 Jun 2009)

Log Message:
-----------
Add a convenience wrapper to CursorMan for checking whether cursor palettes are supported.

Modified Paths:
--------------
    scummvm/trunk/graphics/cursorman.cpp
    scummvm/trunk/graphics/cursorman.h

Modified: scummvm/trunk/graphics/cursorman.cpp
===================================================================
--- scummvm/trunk/graphics/cursorman.cpp	2009-06-10 15:17:44 UTC (rev 41431)
+++ scummvm/trunk/graphics/cursorman.cpp	2009-06-10 15:20:52 UTC (rev 41432)
@@ -129,6 +129,10 @@
 	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;

Modified: scummvm/trunk/graphics/cursorman.h
===================================================================
--- scummvm/trunk/graphics/cursorman.h	2009-06-10 15:17:44 UTC (rev 41431)
+++ scummvm/trunk/graphics/cursorman.h	2009-06-10 15:20:52 UTC (rev 41432)
@@ -88,6 +88,17 @@
 	void popAllCursors();
 
 	/**
+	 * Test whether cursor palettes are supported.
+	 *
+	 * This is just an convenience wrapper for checking for
+	 * OSystem::kFeatureCursorHasPalette to be supported by OSystem.
+	 *
+	 * @see OSystem::kFeatureCursorHasPalette
+	 * @see OSystem::hasFeature
+	 */
+	bool supportsCursorPalettes();
+
+	/**
 	 * Enable/Disable the current cursor palette.
 	 *
 	 * @param disable


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list