[Scummvm-git-logs] scummvm master -> 6b7a00db61b1926ddcc70e2f31ff01ec05e3eca1
mgerhardy
noreply at scummvm.org
Thu Oct 10 19:43:20 UTC 2024
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:
6b7a00db61 TWINE: fixed invalid palettes values for the slide show
Commit: 6b7a00db61b1926ddcc70e2f31ff01ec05e3eca1
https://github.com/scummvm/scummvm/commit/6b7a00db61b1926ddcc70e2f31ff01ec05e3eca1
Author: Martin Gerhardy (martin.gerhardy at gmail.com)
Date: 2024-10-10T21:43:00+02:00
Commit Message:
TWINE: fixed invalid palettes values for the slide show
introduced in a recent palette conversion commit
Changed paths:
engines/twine/slideshow.cpp
diff --git a/engines/twine/slideshow.cpp b/engines/twine/slideshow.cpp
index b04666da314..2d7f6db16a7 100644
--- a/engines/twine/slideshow.cpp
+++ b/engines/twine/slideshow.cpp
@@ -102,8 +102,8 @@ private:
void scriptText(const Common::String ¶ms) {
if (!params.empty()) {
- _pal.set(255, 0, 0, 0);
- _pal.set(15, 0, 0, 0);
+ _pal.set(255, 255, 255, 255);
+ _pal.set(15, 255, 255, 255);
_engine->setPalette(_pal);
const int32 length = _engine->_text->sizeFont(params.c_str());
const int x = 0;
@@ -115,8 +115,8 @@ private:
void scriptRText(const Common::String ¶ms) {
if (!params.empty()) {
- _pal.set(255, 0, 0, 0);
- _pal.set(15, 0, 0, 0);
+ _pal.set(255, 255, 255, 255);
+ _pal.set(15, 255, 255, 255);
_engine->setPalette(_pal);
const int32 length = _engine->_text->sizeFont(params.c_str());
const int x = _engine->width() - length;
@@ -129,8 +129,8 @@ private:
void scriptTitle(const Common::String ¶ms) {
if (!params.empty()) {
- _pal.set(255, 0, 0, 0);
- _pal.set(15, 0, 0, 0);
+ _pal.set(255, 255, 255, 255);
+ _pal.set(15, 255, 255, 255);
_engine->setPalette(_pal);
const int32 length = _engine->_text->sizeFont(params.c_str());
const int x = _engine->width() / 2 - length / 2;
More information about the Scummvm-git-logs
mailing list