[Scummvm-git-logs] scummvm master -> e0e987304f471426ba95deb6ce4334b63200b6a1

dreammaster noreply at scummvm.org
Fri Aug 7 12:08:33 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:
e0e987304f MADS: NEBULAR: Extra animview palette init at start to match Dosbox


Commit: e0e987304f471426ba95deb6ce4334b63200b6a1
    https://github.com/scummvm/scummvm/commit/e0e987304f471426ba95deb6ce4334b63200b6a1
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-08-07T22:07:23+10:00

Commit Message:
MADS: NEBULAR: Extra animview palette init at start to match Dosbox

Changed paths:
    engines/mads/animview/animview.cpp
    engines/mads/core/mouse.cpp
    engines/mads/core/mouse.h


diff --git a/engines/mads/animview/animview.cpp b/engines/mads/animview/animview.cpp
index b18ac206f49..026fc89918d 100644
--- a/engines/mads/animview/animview.cpp
+++ b/engines/mads/animview/animview.cpp
@@ -394,6 +394,7 @@ static void animate() {
 
 	mcga_compute_retrace_parameters();
 	memset(cycling_palette, 0, sizeof(Palette));
+	memset(master_palette, 0, sizeof(Palette));
 	pal_init(1, 8);
 	mouse_hard_cursor_mode(2, master_palette);
 
@@ -474,7 +475,7 @@ static void animate() {
 				mem_free(room);
 			} else {
 				pal_init(1, 8);
-				mouse_hard_cursor_mode(2, &master_palette);
+				mouse_hard_cursor_mode(2, master_palette);
 			}
 		}
 
diff --git a/engines/mads/core/mouse.cpp b/engines/mads/core/mouse.cpp
index 3f3c89bec66..1de369301bb 100644
--- a/engines/mads/core/mouse.cpp
+++ b/engines/mads/core/mouse.cpp
@@ -250,10 +250,9 @@ void mouse_refresh_done() {
 void mouse_disable_scale() {
 }
 
-void mouse_hard_cursor_mode(int mode, Palette *mypal) {
-}
-
-void mouse_hard_cursor_mode(int mode, Palette mypal) {
+void mouse_hard_cursor_mode(int mode, Palette &mypal) {
+	static const byte RGB[6] = { 0x2d, 0x2d, 0x2d, 0x3f, 0x3f, 0x3f };
+	Common::copy(RGB, RGB + 6, &mypal[253].r);
 }
 
 } // namespace MADS
diff --git a/engines/mads/core/mouse.h b/engines/mads/core/mouse.h
index 06ebac6f331..0628401c136 100644
--- a/engines/mads/core/mouse.h
+++ b/engines/mads/core/mouse.h
@@ -81,7 +81,7 @@ extern void mouse_set_view_port(int dx, int dy);
 extern int mouse_refresh_view_port();
 extern void mouse_refresh_done();
 extern void mouse_disable_scale();
-extern void mouse_hard_cursor_mode(int mode, Palette *mypal);
+extern void mouse_hard_cursor_mode(int mode, Palette &mypal);
 
 /**
  * Returns true if the mouse is in the specified box
@@ -111,7 +111,6 @@ extern void mouse_cursor_surface(const Graphics::Surface &surf, int hot_x, int h
 extern void mouse_video_init();
 extern void mouse_video_update(int from_x, int from_y,
 	int unto_x, int unto_y, int size_x, int size_y);
-extern void mouse_hard_cursor_mode(int mode, Palette mypal);
 
 } // namespace MADS
 




More information about the Scummvm-git-logs mailing list