improve loading time

This commit is contained in:
LabyStudio
2022-02-04 16:31:11 +01:00
parent 04e38ff7c3
commit 317a70dfd4
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ window.Gui = class {
stack.save();
stack.fillStyle = color;
stack.globalAlpha = alpha;
stack.fillRect(left, top, right - left, bottom - top);
stack.fillRect(Math.floor(left), Math.floor(top), Math.floor(right - left), Math.floor(bottom - top));
stack.restore();
}