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

This commit is contained in:
Paul Gilbert 2019-01-04 23:14:19 -08:00
parent e655c50d17
commit ece101ee4a
2 changed files with 6 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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;