diff options
author | Nicola Mettifogo | 2008-02-06 14:56:10 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-02-06 14:56:10 +0000 |
commit | c03cb964c0a7c2fac7e39cc0035ab9aa030cf3e5 (patch) | |
tree | 36267ff50c96c02b69b80a5202b6c0046a415fa4 /engines/parallaction/graphics.cpp | |
parent | 014511f380c200874c3fe39515f8b377d1a02861 (diff) | |
download | scummvm-rg350-c03cb964c0a7c2fac7e39cc0035ab9aa030cf3e5.tar.gz scummvm-rg350-c03cb964c0a7c2fac7e39cc0035ab9aa030cf3e5.tar.bz2 scummvm-rg350-c03cb964c0a7c2fac7e39cc0035ab9aa030cf3e5.zip |
Fixed broken halfbrite implementation from some time ago (nobody complained!!!).
svn-id: r30810
Diffstat (limited to 'engines/parallaction/graphics.cpp')
-rw-r--r-- | engines/parallaction/graphics.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index 5984c0a2e9..26da266611 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -434,11 +434,10 @@ void Gfx::updateScreen() { if (_halfbrite) { // FIXME: the implementation of halfbrite is now largely sub-optimal in that a full screen - // rewrite is needed to apply the effect. - byte *src = (byte*)_backgroundInfo.bg.pixels; - byte *dst = (byte*)surf->pixels; + // rewrite is needed to apply the effect. Also, we are manipulating the frame buffer. Is it a good idea? + byte *buf = (byte*)surf->pixels; for (int i = 0; i < surf->w*surf->h; i++) { - *dst++ = *src++ | 0x20; + *buf++ |= 0x20; } if (_hbCircleRadius > 0) { drawCircle(_hbCirclePos.x, _hbCirclePos.y, _hbCircleRadius, 0, &halfbritePixel, surf->pixels); |