[Scummvm-cvs-logs] SF.net SVN: scummvm: [25145] scummvm/trunk/engines/parallaction/graphics. cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Jan 21 12:00:08 CET 2007
Revision: 25145
http://scummvm.svn.sourceforge.net/scummvm/?rev=25145&view=rev
Author: peres001
Date: 2007-01-21 03:00:07 -0800 (Sun, 21 Jan 2007)
Log Message:
-----------
fixed occasional border issues in inventory
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/graphics.cpp
Modified: scummvm/trunk/engines/parallaction/graphics.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/graphics.cpp 2007-01-21 09:58:18 UTC (rev 25144)
+++ scummvm/trunk/engines/parallaction/graphics.cpp 2007-01-21 11:00:07 UTC (rev 25145)
@@ -354,6 +354,7 @@
void Graphics::flatBlit(uint16 w, uint16 h, int16 x, int16 y, byte *data, Graphics::Buffers buffer) {
// printf("Graphics::flatBlit(%i, %i, %i, %i)\n", w, h, x, y);
+ // source coordinates
int16 left = 0, top = 0;
int16 right = w, bottom = h;
@@ -1237,13 +1238,16 @@
byte *d = _buffers[buffer] + x + SCREEN_WIDTH * y;
+ memset(d, color, w);
+
for (uint16 i = 0; i < h; i++) {
- d[i] = color;
- d[i + SCREEN_WIDTH * (h-1)] = color;
d[i * SCREEN_WIDTH] = color;
d[i * SCREEN_WIDTH + w - 1] = color;
}
+ d = _buffers[buffer] + x + SCREEN_WIDTH * (y + h - 1);
+ memset(d, color, w);
+
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list