This commit is contained in:
2014-10-14 15:53:10 +04:00
parent a4cda92dc9
commit 1fc15a0899
2 changed files with 8 additions and 6 deletions

View File

@@ -321,12 +321,14 @@ class Updater {
}
public function update(?_):Void {
try {
while (invalidated.length > 0) {
invalidated.shift().update();
}
var v = null;
try {
v = invalidated.shift();
v.update();
} catch (error:Dynamic) {
L.e("UPDATE", "", error);
L.e("Update", v + "", error);
}
}
}

View File

@@ -17,7 +17,7 @@ class ProgressSkin implements ISkin<Sprite, ProgressView> {
graphics.beginFill(backColor);
graphics.drawRect(0, 0, view.width, view.height);
graphics.beginFill(foreColor);
graphics.drawRect(0, 0, view.width * (view.value / view.max), view.height);
graphics.drawRect(0, 0, view.width * (view.max > 0 ? view.value / view.max : 0), view.height);
graphics.endFill();
}
}