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

dreammaster paulfgilbert at gmail.com
Mon Aug 12 05:53:57 CEST 2019


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:
c06fd200bd GLK: FROTZ: Properly erase window when Arthur intro finishes


Commit: c06fd200bdfd05ed1a99791651f5a69722661ef0
    https://github.com/scummvm/scummvm/commit/c06fd200bdfd05ed1a99791651f5a69722661ef0
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-08-11T20:53:48-07:00

Commit Message:
GLK: FROTZ: Properly erase window when Arthur intro finishes

Changed paths:
    engines/glk/frotz/windows.cpp


diff --git a/engines/glk/frotz/windows.cpp b/engines/glk/frotz/windows.cpp
index 9f7dd83..9f7e691 100644
--- a/engines/glk/frotz/windows.cpp
+++ b/engines/glk/frotz/windows.cpp
@@ -217,6 +217,12 @@ void Window::setCursor() {
 void Window::clear() {
 	if (_win)
 		g_vm->glk_window_clear(_win);
+
+	if (_windows->_background) {
+		Rect r(_properties[X_SIZE] * g_conf->_monoInfo._cellW, _properties[Y_SIZE] * g_conf->_monoInfo._cellH);
+		r.moveTo((_properties[X_POS] - 1) * g_conf->_monoInfo._cellW, (_properties[Y_POS] - 1) * g_conf->_monoInfo._cellH);
+		_windows->_background->fillRect(g_conf->_windowColor, r);
+	}
 }
 
 void Window::updateColors() {





More information about the Scummvm-git-logs mailing list