Skip to content

Commit

Permalink
WAGE: Implement proper design drawing quitting
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent 80af9c9 commit c40b5a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engines/wage/design.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit c40b5a3

Please sign in to comment.