[Scummvm-git-logs] scummvm master -> dab373ee2bc210fcf371f6482a5fcb8906b93cd4
dreammaster
noreply at scummvm.org
Tue May 19 11:40:12 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:
dab373ee2b MADS: PHANTOM: Hide mouse cursor for animview/textview
Commit: dab373ee2bc210fcf371f6482a5fcb8906b93cd4
https://github.com/scummvm/scummvm/commit/dab373ee2bc210fcf371f6482a5fcb8906b93cd4
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-19T21:40:03+10:00
Commit Message:
MADS: PHANTOM: Hide mouse cursor for animview/textview
Changed paths:
engines/mads/madsv2/animview/anim_timer.cpp
engines/mads/madsv2/animview/animview.cpp
engines/mads/madsv2/textview/textview.cpp
diff --git a/engines/mads/madsv2/animview/anim_timer.cpp b/engines/mads/madsv2/animview/anim_timer.cpp
index 94798fae8bf..a3d6f9d4f75 100644
--- a/engines/mads/madsv2/animview/anim_timer.cpp
+++ b/engines/mads/madsv2/animview/anim_timer.cpp
@@ -25,6 +25,7 @@
#include "mads/madsv2/core/cycle.h"
#include "mads/madsv2/core/matte.h"
#include "mads/madsv2/core/mcga.h"
+#include "mads/madsv2/core/mouse.h"
#include "mads/madsv2/core/pal.h"
#include "mads/madsv2/core/timer.h"
#include "mads/madsv2/engine.h"
@@ -90,6 +91,7 @@ void anim_timer() {
if (currTimer < timer1) {
matte_frame(runFx, false);
+ mouse_hide();
}
}
@@ -226,6 +228,7 @@ block2:
}
matte_frame(runFx, 0);
+ mouse_hide();
block3:
if (runFx) {
diff --git a/engines/mads/madsv2/animview/animview.cpp b/engines/mads/madsv2/animview/animview.cpp
index 2511af33097..582e977a7a5 100644
--- a/engines/mads/madsv2/animview/animview.cpp
+++ b/engines/mads/madsv2/animview/animview.cpp
@@ -606,6 +606,7 @@ void animview_main(const char *resName) {
pack_enable_pfab_explode();
(void)env_verify();
+ mouse_hide();
Common::strcpy_s(name, resName);
if (*name == '@') {
diff --git a/engines/mads/madsv2/textview/textview.cpp b/engines/mads/madsv2/textview/textview.cpp
index 71194e1cf6a..d9605645fc9 100644
--- a/engines/mads/madsv2/textview/textview.cpp
+++ b/engines/mads/madsv2/textview/textview.cpp
@@ -408,8 +408,10 @@ static void animate() {
timer1 = curr_time + peel_time;
curr_time = timer_read();
- if (curr_time < timer2)
+ if (curr_time < timer2) {
matte_frame(0, 0);
+ mouse_hide();
+ }
}
if (curr_time >= timer2) {
@@ -433,6 +435,8 @@ static void animate() {
isGoing = false;
matte_frame(has_background ? 2 : 0, 0);
+ mouse_hide();
+
flag3 = has_background = false;
timer2 = curr_time + 6;
}
@@ -460,6 +464,7 @@ void textview_main(const char *resName) {
// Clear the screen
auto &screen = *g_engine->getScreen();
screen.clear();
+ mouse_hide();
// Open the text resource file
Common::String fname = Common::String::format("*%s.txr", resName);
More information about the Scummvm-git-logs
mailing list