From 77468312de507fcd7e01c95f1135afc33a6f4b24 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 24 Nov 2018 16:53:04 -0800 Subject: GLK: FROTZ: Beyond Zork title screen now showing --- engines/glk/window_graphics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/glk/window_graphics.cpp') diff --git a/engines/glk/window_graphics.cpp b/engines/glk/window_graphics.cpp index 92224b6a4d..7343d51607 100644 --- a/engines/glk/window_graphics.cpp +++ b/engines/glk/window_graphics.cpp @@ -62,8 +62,7 @@ void GraphicsWindow::rearrange(const Rect &box) { if (newhgt < bothhgt) bothhgt = newhgt; - newSurface = new Graphics::ManagedSurface(newwid, newhgt, - Graphics::PixelFormat(3, 8, 8, 8, 0, 16, 8, 0, 0)); + newSurface = new Graphics::ManagedSurface(newwid, newhgt, g_system->getScreenFormat()); // If the new surface is equal or bigger than the old one, copy it over if (_surface && bothwid && bothhgt) @@ -231,7 +230,7 @@ void GraphicsWindow::drawPicture(Picture *src, int x0, int y0, int width, int h w = sx1 - sx0; h = sy1 - sy0; - _surface->blitFrom(*g_vm->_screen, Rect(sx0, sy0, sx0 + w, sy0 + h), Point(0, 0)); + _surface->blitFrom(*src, Rect(sx0, sy0, sx0 + w, sy0 + h), Point(0, 0)); } void GraphicsWindow::getSize(glui32 *width, glui32 *height) const { -- cgit v1.2.3