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

dreammaster paulfgilbert at gmail.com
Sat Jan 5 08:14:41 CET 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:
ece101ee4a GLK: FROTZ: Only wait for keypress in Beyond Zork title if mg1 present


Commit: ece101ee4a5c9623eb030f5c96ef2bfa2401bdb3
    https://github.com/scummvm/scummvm/commit/ece101ee4a5c9623eb030f5c96ef2bfa2401bdb3
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2019-01-04T23:14:19-08:00

Commit Message:
GLK: FROTZ: Only wait for keypress in Beyond Zork title if mg1 present

Changed paths:
    engines/glk/frotz/glk_interface.cpp
    engines/glk/glk_api.cpp


diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp
index ef1917b..cf90ddc 100644
--- a/engines/glk/frotz/glk_interface.cpp
+++ b/engines/glk/frotz/glk_interface.cpp
@@ -490,9 +490,9 @@ void GlkInterface::showBeyondZorkTitle() {
 
 	if (saveSlot == -1) {
 		winid_t win = glk_window_open(0, 0, 0, wintype_Graphics, 0);
-		glk_image_draw_scaled(win, 1, 0, 0, g_vm->_screen->w, g_vm->_screen->h);
+		if (glk_image_draw_scaled(win, 1, 0, 0, g_vm->_screen->w, g_vm->_screen->h))
+			_events->waitForPress();
 
-		_events->waitForPress();
 		glk_window_close(win, nullptr);
 	}
 }
diff --git a/engines/glk/glk_api.cpp b/engines/glk/glk_api.cpp
index 6e0f33e..329f4e9 100644
--- a/engines/glk/glk_api.cpp
+++ b/engines/glk/glk_api.cpp
@@ -896,9 +896,9 @@ bool GlkAPI::glk_image_draw(winid_t win, uint image, int val1, int val2) {
 		GraphicsWindow *gfxWin = dynamic_cast<GraphicsWindow *>(win);
 
 		if (textWin)
-			textWin->drawPicture(image, val1, false, 0, 0);
+			return textWin->drawPicture(image, val1, false, 0, 0);
 		else if (gfxWin)
-			gfxWin->drawPicture(image, val1, val2, false, 0, 0);
+			return gfxWin->drawPicture(image, val1, val2, false, 0, 0);
 	}
 
 	return false;
@@ -913,9 +913,9 @@ bool GlkAPI::glk_image_draw_scaled(winid_t win, uint image, int val1, int val2,
 		GraphicsWindow *gfxWin = dynamic_cast<GraphicsWindow *>(win);
 
 		if (textWin)
-			textWin->drawPicture(image, val1, true, width, height);
+			return textWin->drawPicture(image, val1, true, width, height);
 		else if (gfxWin)
-			gfxWin->drawPicture(image, val1, val2, true, width, height);
+			return gfxWin->drawPicture(image, val1, val2, true, width, height);
 	}
 
 	return false;





More information about the Scummvm-git-logs mailing list