diff options
author | Max Horn | 2008-01-28 22:20:55 +0000 |
---|---|---|
committer | Max Horn | 2008-01-28 22:20:55 +0000 |
commit | 0150ada2d70f1894c4003face4931a4e88cfaffb (patch) | |
tree | 5422e644db7ed26cf83f194f72c2c12c7619f219 /engines/parallaction | |
parent | d8e1f5a060654e1abd8ff9fc69b34320383e59f3 (diff) | |
download | scummvm-rg350-0150ada2d70f1894c4003face4931a4e88cfaffb.tar.gz scummvm-rg350-0150ada2d70f1894c4003face4931a4e88cfaffb.tar.bz2 scummvm-rg350-0150ada2d70f1894c4003face4931a4e88cfaffb.zip |
Replace lock/unlock/lock/unlock by lock/unlock for efficency
svn-id: r30693
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/graphics.cpp | 5 |
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(); |