[Scummvm-git-logs] scummvm master -> 26dc725ed25bd40fcec738a2ddb32c2d2c59000d

sev- sev at scummvm.org
Fri May 14 20:37:28 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
26dc725ed2 GUI: Convert the cursor bitmap to the overlay format


Commit: 26dc725ed25bd40fcec738a2ddb32c2d2c59000d
    https://github.com/scummvm/scummvm/commit/26dc725ed25bd40fcec738a2ddb32c2d2c59000d
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2021-05-14T22:37:24+02:00

Commit Message:
GUI: Convert the cursor bitmap to the overlay format

Changed paths:
    gui/ThemeEngine.cpp


diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index dd2b934f95..2a732d973e 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -1534,16 +1534,16 @@ bool ThemeEngine::createCursor(const Common::String &filename, int hotspotX, int
 	_cursorHeight = cursor->h;
 
 #ifdef USE_RGB_COLOR
-	_cursorFormat = cursor->format;
+	_cursorFormat = _overlayFormat;
 	_cursorTransparent = _cursorFormat.RGBToColor(0xFF, 0, 0xFF);
 
 	// Allocate a new buffer for the cursor
 	delete[] _cursor;
 	_cursor = new byte[_cursorWidth * _cursorHeight * _cursorFormat.bytesPerPixel];
 	assert(_cursor);
-	Graphics::copyBlit(_cursor, (const byte *)cursor->getPixels(),
-	                   _cursorWidth * _cursorFormat.bytesPerPixel, cursor->pitch,
-	                   _cursorWidth, _cursorHeight, _cursorFormat.bytesPerPixel);
+	Graphics::crossBlit(_cursor, (const byte *)cursor->getPixels(),
+	                    _cursorWidth * _cursorFormat.bytesPerPixel, cursor->pitch,
+	                    _cursorWidth, _cursorHeight, _cursorFormat, cursor->format);
 
 	_useCursor = true;
 #else




More information about the Scummvm-git-logs mailing list