From eeed392782d92a6f10c9d0083de8e92d584fa19e Mon Sep 17 00:00:00 2001 From: crazysaem Date: Wed, 15 Dec 2021 20:12:30 +0000 Subject: [PATCH] ptlaunch: remove now redundant draw call, and also remove all setColor calls since we now only need the fg color which is the default anyways --- apps/ptlaunch/app.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/ptlaunch/app.js b/apps/ptlaunch/app.js index d3b4dd1aa..062cc3c62 100644 --- a/apps/ptlaunch/app.js +++ b/apps/ptlaunch/app.js @@ -488,9 +488,6 @@ var drawCircle = (circle, drawBuffer, scale) => { log("drawing circle"); log({ x: x, y: y, r: r }); - drawBuffer.setColor(0); - drawBuffer.fillCircle(x, y, r); - drawBuffer.setColor(1); drawBuffer.drawCircle(x, y, r); }; @@ -538,7 +535,6 @@ var drawCirclesWithPattern = (pattern, options) => { CIRCLES.forEach((circle) => drawCircle(circle, drawBuffer, scale)); - drawBuffer.setColor(1); drawBuffer.setFontAlign(0, 0); drawBuffer.setFont("Vector", 40 * scale); pattern.forEach((circleIndex, patternIndex) => {