[Scummvm-git-logs] scummvm master -> ec4882e6fbfb9d17d9d1f4964bb313b20f4185af
dreammaster
noreply at scummvm.org
Tue May 19 11:04:13 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:
ec4882e6fb MADS: PHANTOM: Clear screen when starting textview
Commit: ec4882e6fbfb9d17d9d1f4964bb313b20f4185af
https://github.com/scummvm/scummvm/commit/ec4882e6fbfb9d17d9d1f4964bb313b20f4185af
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-05-19T21:04:08+10:00
Commit Message:
MADS: PHANTOM: Clear screen when starting textview
Changed paths:
engines/mads/madsv2/textview/textview.cpp
diff --git a/engines/mads/madsv2/textview/textview.cpp b/engines/mads/madsv2/textview/textview.cpp
index e5ec243c074..71194e1cf6a 100644
--- a/engines/mads/madsv2/textview/textview.cpp
+++ b/engines/mads/madsv2/textview/textview.cpp
@@ -457,6 +457,11 @@ void textview_main(const char *resName) {
background_ptr = nullptr;
xPos = 0;
+ // Clear the screen
+ auto &screen = *g_engine->getScreen();
+ screen.clear();
+
+ // Open the text resource file
Common::String fname = Common::String::format("*%s.txr", resName);
file_handle = env_open(fname.c_str());
if (!file_handle)
@@ -495,7 +500,6 @@ void textview_main(const char *resName) {
timer_activate_low_priority(cycle_colors);
// Draw boundary horizontal lines at top and bottom of the screen
- auto &screen = *g_engine->getScreen();
if (viewing_at_y) {
screen.hLine(0, viewing_at_y - 2, 319, 2);
screen.hLine(0, viewing_at_y + scr_work.y + 1, 319, 2);
More information about the Scummvm-git-logs
mailing list