]> git.lizzy.rs Git - dragonblocks.git/blobdiff - engine/gui.js
Make dragonblocks.getTexture() return value contain background-size: cover
[dragonblocks.git] / engine / gui.js
index 3d6eea90d9ab6e485b000dee500d4d72b99ce451..5567e34db90dad1266636aab06dcd42d052178df 100644 (file)
@@ -96,7 +96,6 @@ dragonblocks.gui.Box = class extends EventTarget
                moveField.style.width = this.big ? "50px": "30px";
                moveField.style.height = this.big ? "50px": "30px";
                moveField.style.background = dragonblocks.getTexture("move.png");
-               moveField.style.backgroundSize = "cover"
                moveField.style.cursor = "move";
 
                let self = this;
@@ -136,7 +135,6 @@ dragonblocks.gui.Box = class extends EventTarget
                closeField.style.width = this.big ? "50px": "30px";
                closeField.style.height = this.big ? "50px": "30px";
                closeField.style.background = dragonblocks.getTexture("close.png");
-               closeField.style.backgroundSize = "cover";
                closeField.style.cursor = "pointer";
 
                let self = this;