Skip to content

Commit 17dcee0

Browse files
authored
Sharpen blurry loading bar
1 parent 009653d commit 17dcee0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/impact/loader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ ig.Loader = ig.Class.extend({
6464
draw: function() {
6565
this._drawStatus += (this.status - this._drawStatus)/5;
6666
var s = ig.system.scale;
67-
var w = ig.system.width * 0.6;
68-
var h = ig.system.height * 0.1;
69-
var x = ig.system.width * 0.5-w/2;
70-
var y = ig.system.height * 0.5-h/2;
67+
var w = (ig.system.width * 0.6).floor();
68+
var h = (ig.system.height * 0.1).floor();
69+
var x = (ig.system.width * 0.5-w/2).floor();
70+
var y = (ig.system.height * 0.5-h/2).floor();
7171

7272
ig.system.context.fillStyle = '#000';
7373
ig.system.context.fillRect( 0, 0, ig.system.width, ig.system.height );

0 commit comments

Comments
 (0)