[Scummvm-git-logs] scummvm master -> 6dbd2623fd1add2231b364ccf61dd3bff2b0df31

neuromancer noreply at scummvm.org
Thu Jan 20 20:41:03 UTC 2022


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:
6dbd2623fd HYPNO: some palette fixes in wet


Commit: 6dbd2623fd1add2231b364ccf61dd3bff2b0df31
    https://github.com/scummvm/scummvm/commit/6dbd2623fd1add2231b364ccf61dd3bff2b0df31
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-01-20T21:40:58+01:00

Commit Message:
HYPNO: some palette fixes in wet

Changed paths:
    engines/hypno/wet/arcade.cpp
    engines/hypno/wet/wet.cpp


diff --git a/engines/hypno/wet/arcade.cpp b/engines/hypno/wet/arcade.cpp
index 76891d1e950..2e5dda6084a 100644
--- a/engines/hypno/wet/arcade.cpp
+++ b/engines/hypno/wet/arcade.cpp
@@ -32,7 +32,7 @@ bool WetEngine::clickedSecondaryShoot(const Common::Point &mousePos) {
 }
 
 void WetEngine::drawShoot(const Common::Point &mousePos) {
-	uint32 c = _pixelFormat.RGBToColor(252, 252, 0);
+	uint32 c = 253;
 	_compositeSurface->drawLine(0, _screenH, mousePos.x, mousePos.y, c);
 	_compositeSurface->drawLine(0, _screenH, mousePos.x - 1, mousePos.y, c);
 	_compositeSurface->drawLine(0, _screenH, mousePos.x - 2, mousePos.y, c);
diff --git a/engines/hypno/wet/wet.cpp b/engines/hypno/wet/wet.cpp
index 106cb1d8449..2fda4ba8b27 100644
--- a/engines/hypno/wet/wet.cpp
+++ b/engines/hypno/wet/wet.cpp
@@ -247,10 +247,12 @@ void WetEngine::runCode(Code *code) {
 void WetEngine::runMainMenu(Code *code) {
 	Common::Event event;
 	_font = FontMan.getFontByUsage(Graphics::FontManager::kConsoleFont);
-	uint32 c = _pixelFormat.RGBToColor(0, 252, 0);
-	Graphics::Surface *frame = decodeFrame("c_misc/menus.smk", 16);
+	uint32 c = 252; // green
+	byte *palette;
+	Graphics::Surface *frame = decodeFrame("c_misc/menus.smk", 16, &palette);
+	loadPalette(palette, 0, 256);
 	Common::String _name = "";
-	drawImage(*frame, 0, 0, false);
+	drawImage(*frame, 0, 0, true);
 	_font->drawString(_compositeSurface, "ENTER NAME :", 48, 50, 100, c);
 	while (!shouldQuit()) {
 




More information about the Scummvm-git-logs mailing list