From c40b5a30c035729b953979e709e5b35a8d1b5b63 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 21 Dec 2015 09:36:05 +0100 Subject: WAGE: Implement proper design drawing quitting --- engines/wage/design.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index f347c33f41..8ea550188a 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -102,12 +102,16 @@ void Design::paint(Graphics::Surface *canvas, Patterns &patterns, bool mask) { return; */ - while (!in.eos()) { + while (true) { byte fillType = in.readByte(); + + if (in.eos()) + return; + byte borderThickness = in.readByte(); byte borderFillType = in.readByte(); int type = in.readByte(); - warning("fill: %d border: %d borderFill: %d type: %d", fillType, borderThickness, borderFillType, type); + debug(2, "fill: %d borderFill: %d border: %d type: %d", fillType, borderFillType, borderThickness, type); switch (type) { case 4: drawRect(canvas, in, mask, patterns, fillType, borderThickness, borderFillType); -- cgit v1.2.3