From 37b5b6417908c22a4f8526599b7814900bf1c5f5 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 9 Mar 2016 23:52:35 +0100 Subject: WAGE: Improved a bit bounds calculation. Still bad --- engines/wage/design.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3