diff options
author | Nicola Mettifogo | 2007-01-21 11:00:07 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-01-21 11:00:07 +0000 |
commit | c12fe859222f3a1100890d57971595cf5417e0c2 (patch) | |
tree | c7278662d813ab14ec8210cae08d51fe715f1570 /engines/parallaction | |
parent | 0ea9f49d671cef87bdc26d939f19a3f9e087b9f2 (diff) | |
download | scummvm-rg350-c12fe859222f3a1100890d57971595cf5417e0c2.tar.gz scummvm-rg350-c12fe859222f3a1100890d57971595cf5417e0c2.tar.bz2 scummvm-rg350-c12fe859222f3a1100890d57971595cf5417e0c2.zip |
fixed occasional border issues in inventory
svn-id: r25145
Diffstat (limited to 'engines/parallaction')
-rw-r--r-- | engines/parallaction/graphics.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/parallaction/graphics.cpp b/engines/parallaction/graphics.cpp index f76b27ca10..28bcfdd563 100644 --- a/engines/parallaction/graphics.cpp +++ b/engines/parallaction/graphics.cpp @@ -354,6 +354,7 @@ void Graphics::floodFill(byte color, uint16 left, uint16 top, uint16 right, uint 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 @@ void Graphics::drawBorder(Graphics::Buffers buffer, uint16 x, uint16 y, uint16 w 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; } |