ソースを参照

Always center the image

master
Fen Dweller 5年前
コミット
b9d99d2cbe
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      xray.js

+ 1
- 1
xray.js ファイルの表示

@@ -526,7 +526,7 @@ function setup() {
[baseCtx, baseCtxResized, overlayCtx, overlayCtxResized, shadowCtx].forEach(ctx => {
ctx.canvas.width = width;
ctx.canvas.height = height;
ctx.canvas.style.left = fitScreen ? (availableWidth - width) / 2 + "px" : 0;
ctx.canvas.style.left = (availableWidth - width) / 2 + "px";
ctx.canvas.style.top = fitScreen ? (availableHeight - height) / 2 + "px" : 0;
});


読み込み中…
キャンセル
保存