1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Minor refactoring

This commit is contained in:
tobspr
2020-09-28 12:17:38 +02:00
parent d4617edad5
commit 0d52793c27
6 changed files with 7 additions and 7 deletions

View File

@@ -197,7 +197,7 @@ export class FormElementItemChooser extends FormElement {
canvas.width = 128;
canvas.height = 128;
const context = canvas.getContext("2d");
item.drawRaw(context, 128);
item.drawFullSizeOnCanvas(context, 128);
this.element.appendChild(canvas);
const detector = new ClickDetector(canvas, {});