maybeeee fix more stuff for gob videos (#1262)

This commit is contained in:
NotSoToothless
2026-05-19 17:37:41 -07:00
committed by GitHub
parent 2c9e89eee2
commit f511cdc083
3 changed files with 112 additions and 8 deletions
+2 -4
View File
@@ -556,8 +556,7 @@ class ReplayCanvas {
let iconSize = 18;
if (outlinePoints.length >= 3) {
const outline = this._pickContrastOutlineColor(outlinePoints);
this.mapCtx.strokeStyle = outline;
this.mapCtx.strokeStyle = '#fff';
this.mapCtx.lineWidth = RC_CAP_STROKE_PX;
this.mapCtx.beginPath();
this.mapCtx.moveTo(outlinePoints[0][0], outlinePoints[0][1]);
@@ -591,8 +590,7 @@ class ReplayCanvas {
[px + Math.round(rp * 0.707), py - Math.round(rp * 0.707)],
[px - Math.round(rp * 0.707), py - Math.round(rp * 0.707)],
];
const outline = this._pickContrastOutlineColor(ringSamples);
this.mapCtx.strokeStyle = outline;
this.mapCtx.strokeStyle = '#fff';
this.mapCtx.lineWidth = RC_CAP_STROKE_PX;
this.mapCtx.beginPath();
this.mapCtx.arc(px, py, rp, 0, Math.PI * 2);