From 0150ada2d70f1894c4003face4931a4e88cfaffb Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 28 Jan 2008 22:20:55 +0000 Subject: Replace lock/unlock/lock/unlock by lock/unlock for efficency svn-id: r30693 --- engines/parallaction/graphics.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/parallaction/graphics.cpp') diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index fcdf752168..c0a277dace 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -350,12 +350,10 @@ void Gfx::updateScreen() { Graphics::Surface *surf = g_system->lockScreen(); drawGfxObjects(*surf); - g_system->unlockScreen(); if (_halfbrite) { // FIXME: the implementation of halfbrite is now largely sub-optimal in that a full screen // rewrite is needed to apply the effect. - surf = g_system->lockScreen(); byte *src = (byte*)_buffers[kBit2]->pixels; byte *dst = (byte*)surf->pixels; for (int i = 0; i < surf->w*surf->h; i++) { @@ -364,9 +362,10 @@ void Gfx::updateScreen() { if (_hbCircleRadius > 0) { drawCircle(_hbCirclePos.x, _hbCirclePos.y, _hbCircleRadius, 0, &halfbritePixel, surf->pixels); } - g_system->unlockScreen(); } + g_system->unlockScreen(); + drawInventory(); drawItems(); -- cgit v1.2.3