We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 009653d commit 17dcee0Copy full SHA for 17dcee0
1 file changed
lib/impact/loader.js
@@ -64,10 +64,10 @@ ig.Loader = ig.Class.extend({
64
draw: function() {
65
this._drawStatus += (this.status - this._drawStatus)/5;
66
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;
+ var w = (ig.system.width * 0.6).floor();
+ var h = (ig.system.height * 0.1).floor();
+ var x = (ig.system.width * 0.5-w/2).floor();
+ var y = (ig.system.height * 0.5-h/2).floor();
71
72
ig.system.context.fillStyle = '#000';
73
ig.system.context.fillRect( 0, 0, ig.system.width, ig.system.height );
0 commit comments