diff options
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/design.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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); |