aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-09 23:52:35 +0100
committerEugene Sandulenko2016-03-09 23:53:07 +0100
commit37b5b6417908c22a4f8526599b7814900bf1c5f5 (patch)
tree3927556b41e8619077ef82951a35f4525d508b23
parent1f4af34a40f5175f0948f0bff00b384f5447b4dc (diff)
downloadscummvm-rg350-37b5b6417908c22a4f8526599b7814900bf1c5f5.tar.gz
scummvm-rg350-37b5b6417908c22a4f8526599b7814900bf1c5f5.tar.bz2
scummvm-rg350-37b5b6417908c22a4f8526599b7814900bf1c5f5.zip
WAGE: Improved a bit bounds calculation. Still bad
-rw-r--r--engines/wage/design.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp
index d0b84f12e3..677efd00e1 100644
--- a/engines/wage/design.cpp
+++ b/engines/wage/design.cpp
@@ -214,6 +214,8 @@ void drawPixel(int x, int y, int color, void *data) {
return;
if (p->design && p->design->isBoundsCalculation()) {
+ if (x < 0 || y < 0)
+ return;
if (p->thickness == 1) {
p->design->adjustBounds(x, y);
} else {