diff options
| author | Matthew Hoops | 2011-08-16 00:30:42 -0400 | 
|---|---|---|
| committer | Matthew Hoops | 2011-08-16 00:30:42 -0400 | 
| commit | a18312677d3fa29b55168743c0d8b58f94847f53 (patch) | |
| tree | 4600ca35fa504a1fef4bb8b481538cc8cd9fef92 | |
| parent | c75bf3290d841f61e9b321f2419537cdaa972f52 (diff) | |
| download | scummvm-rg350-a18312677d3fa29b55168743c0d8b58f94847f53.tar.gz scummvm-rg350-a18312677d3fa29b55168743c0d8b58f94847f53.tar.bz2 scummvm-rg350-a18312677d3fa29b55168743c0d8b58f94847f53.zip | |
MOHAWK: Use the default Windows cursor in /graphics now
| -rw-r--r-- | engines/mohawk/cursors.cpp | 37 | 
1 files changed, 7 insertions, 30 deletions
| diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp index 78e099ccfe..cbd17e0b86 100644 --- a/engines/mohawk/cursors.cpp +++ b/engines/mohawk/cursors.cpp @@ -49,36 +49,13 @@ void CursorManager::hideCursor() {  }  void CursorManager::setDefaultCursor() { -	static const byte defaultCursor[] = { -		1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -		1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -		1, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, -		1, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, -		1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, -		1, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, -		1, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, -		1, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, 0, -		1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, 0, -		1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 0, -		1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, -		1, 2, 2, 2, 1, 2, 2, 1, 0, 0, 0, 0, -		1, 2, 2, 1, 1, 2, 2, 1, 0, 0, 0, 0, -		1, 2, 1, 0, 1, 1, 2, 2, 1, 0, 0, 0, -		1, 1, 0, 0, 0, 1, 2, 2, 1, 0, 0, 0, -		1, 0, 0, 0, 0, 0, 1, 2, 2, 1, 0, 0, -		0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 0, 0, -		0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 0, -		0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 1, 0, -		0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 -	}; - -	static const byte bwPalette[] = { -		0x00, 0x00, 0x00,	// Black -		0xFF, 0xFF, 0xFF	// White -	}; - -	CursorMan.replaceCursor(defaultCursor, 12, 20, 0, 0, 0); -	CursorMan.replaceCursorPalette(bwPalette, 1, 2); +	Graphics::Cursor *cursor = Graphics::makeDefaultWinCursor(); + +	CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(), +			cursor->getHotspotY(), cursor->getKeyColor()); +	CursorMan.replaceCursorPalette(cursor->getPalette(), cursor->getPaletteStartIndex(), cursor->getPaletteCount()); + +	delete cursor;  }  void CursorManager::setCursor(uint16 id) { | 
