[Scummvm-git-logs] scummvm master -> a8990dc0e08d16ce87a5e65168c8229dc53a28d0
rsn8887
noreply at scummvm.org
Wed Oct 14 21:51:32 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a8990dc0e0 PSP: Preserve palletted mouse pointer colors
Commit: a8990dc0e08d16ce87a5e65168c8229dc53a28d0
https://github.com/scummvm/scummvm/commit/a8990dc0e08d16ce87a5e65168c8229dc53a28d0
Author: rsn8887 (rsn8887 at users.noreply.github.com)
Date: 2026-10-14T16:51:06-05:00
Commit Message:
PSP: Preserve palletted mouse pointer colors
Changed paths:
backends/platform/psp/cursor.cpp
diff --git a/backends/platform/psp/cursor.cpp b/backends/platform/psp/cursor.cpp
index e91c701ee2c..262ce73c713 100644
--- a/backends/platform/psp/cursor.cpp
+++ b/backends/platform/psp/cursor.cpp
@@ -144,6 +144,9 @@ void Cursor::copyFromArray(const byte *array) {
_blitFunc(_buffer.getPixels(), array,
_buffer.getWidthInBytes(), _buffer.getSourceWidthInBytes(),
_buffer.getWidth(), _buffer.getHeight());
+ } else if (_buffer.hasPalette()) {
+ // Preserve the palette indices; do not color-convert them.
+ _buffer.copyFromArray(array, _buffer.getSourceWidthInBytes());
} else {
Graphics::crossBlit(_buffer.getPixels(), array,
_buffer.getWidthInBytes(), _buffer.getSourceWidthInBytes(),
More information about the Scummvm-git-logs
mailing list