Add pixel ratio scaling to play icons.

This commit is contained in:
yukirij 2024-10-13 21:50:45 -07:00
parent b671923946
commit 6994541671

View File

@ -454,8 +454,8 @@ const UI = {
},
draw_play_icons(canvas, moves) {
canvas.width = canvas.clientWidth;
canvas.height = canvas.clientHeight;
canvas.width = canvas.clientWidth * (window.devicePixelRatio || 1);
canvas.height = canvas.clientHeight * (window.devicePixelRatio || 1);
let ctx = canvas.getContext("2d");
let size = canvas.height / 2;