瀏覽代碼

Draw the ground when taking screenshots

master
Fen Dweller 5 年之前
父節點
當前提交
493ac082a2
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      macrovision.js

+ 5
- 0
macrovision.js 查看文件

@@ -3432,6 +3432,11 @@ function generateScreenshot(callback) {
ctx.fillStyle = "#555";
ctx.font = "normal normal lighter 16pt coda";
ctx.fillText("macrovision.crux.sexy", 10, 25);

if (checkBodyClass("toggle-bottom-cover")) {
ctx.fillStyle = "#000";
ctx.fillRect(0, pos2pix({x: 0, y: 0}).y, canvasWidth + 100, canvasHeight);
}
exportCanvas(blob => {
callback(blob);


Loading…
取消
儲存