fix
This commit is contained in:
@@ -321,12 +321,14 @@ class Updater {
|
||||
}
|
||||
|
||||
public function update(?_):Void {
|
||||
try {
|
||||
while (invalidated.length > 0) {
|
||||
invalidated.shift().update();
|
||||
}
|
||||
} catch (error:Dynamic) {
|
||||
L.e("UPDATE", "", error);
|
||||
var v = null;
|
||||
try {
|
||||
v = invalidated.shift();
|
||||
v.update();
|
||||
} catch (error:Dynamic) {
|
||||
L.e("Update", v + "", error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user