aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r--engines/parallaction/graphics.cpp5
1 files changed, 2 insertions, 3 deletions
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();