aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/window_graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2018-11-24 16:53:04 -0800
committerPaul Gilbert2018-12-08 19:05:59 -0800
commit77468312de507fcd7e01c95f1135afc33a6f4b24 (patch)
treed9ff037883a24a045c4079267d6854510f2e473f /engines/glk/window_graphics.cpp
parent62af5ea8919a5148154413eaec80a9e686d64114 (diff)
downloadscummvm-rg350-77468312de507fcd7e01c95f1135afc33a6f4b24.tar.gz
scummvm-rg350-77468312de507fcd7e01c95f1135afc33a6f4b24.tar.bz2
scummvm-rg350-77468312de507fcd7e01c95f1135afc33a6f4b24.zip
GLK: FROTZ: Beyond Zork title screen now showing
Diffstat (limited to 'engines/glk/window_graphics.cpp')
-rw-r--r--engines/glk/window_graphics.cpp5
1 files changed, 2 insertions, 3 deletions
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 {