aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2015-12-21 09:36:05 +0100
committerEugene Sandulenko2015-12-27 15:40:59 +0100
commitc40b5a30c035729b953979e709e5b35a8d1b5b63 (patch)
tree553376e6f99eb5c2e8ecac10288e70925e10822f /engines
parent80af9c9c711392ff888c747ce980a69518423d31 (diff)
downloadscummvm-rg350-c40b5a30c035729b953979e709e5b35a8d1b5b63.tar.gz
scummvm-rg350-c40b5a30c035729b953979e709e5b35a8d1b5b63.tar.bz2
scummvm-rg350-c40b5a30c035729b953979e709e5b35a8d1b5b63.zip
WAGE: Implement proper design drawing quitting
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/design.cpp8
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);