From 0cde8e8b8315efe6c2da9de6b36a88703a563eaf Mon Sep 17 00:00:00 2001 From: Thomas Obermueller Date: Tue, 19 May 2026 10:51:57 +0000 Subject: [PATCH 1/2] fix(code): sharper hedgehog rendering on Retina displays Patch @posthog/hedgehog-mode to use linear instead of nearest texture sampling. Pixi renders at devicePixelRatio, so on Retina the 80x80 source sprites were being upscaled with chunky 2x2 texel blocks. Generated-By: PostHog Code Task-Id: 9a2867a2-c109-474c-a88b-393a2023e9f3 --- patches/@posthog__hedgehog-mode.patch | 12 ++++++++++++ pnpm-workspace.yaml | 1 + 2 files changed, 13 insertions(+) create mode 100644 patches/@posthog__hedgehog-mode.patch diff --git a/patches/@posthog__hedgehog-mode.patch b/patches/@posthog__hedgehog-mode.patch new file mode 100644 index 000000000..dd203cf1b --- /dev/null +++ b/patches/@posthog__hedgehog-mode.patch @@ -0,0 +1,12 @@ +diff --git a/dist/index-BBpNRJEB.js b/dist/index-BBpNRJEB.js +--- a/dist/index-BBpNRJEB.js ++++ b/dist/index-BBpNRJEB.js +@@ -29183,7 +29183,7 @@ + ); + } + loadSpriteFrames(e) { +- this.sprite = new gh(e), this.loadRigidBody(), this.sprite.eventMode = "static", this.sprite.texture.source.scaleMode = "nearest", this.sprite.play(), this.sprite.anchor.set(0.5), this.sprite.x = this.rigidBody.position.x, this.sprite.y = this.rigidBody.position.y, this.game.app.stage.addChild(this.sprite), this.setupPointerEvents(); ++ this.sprite = new gh(e), this.loadRigidBody(), this.sprite.eventMode = "static", this.sprite.texture.source.scaleMode = "linear", this.sprite.play(), this.sprite.anchor.set(0.5), this.sprite.x = this.rigidBody.position.x, this.sprite.y = this.rigidBody.position.y, this.game.app.stage.addChild(this.sprite), this.setupPointerEvents(); + } + loadRigidBody(e = !1) { + let t = window.innerWidth / 2, r = window.innerHeight / 2; diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index c4309763b..cbc4db806 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -29,3 +29,4 @@ onlyBuiltDependencies: patchedDependencies: node-pty: patches/node-pty.patch + '@posthog/hedgehog-mode': patches/@posthog__hedgehog-mode.patch From 8856da39bf9a451c673f8b42dd6c14ad6f2035d6 Mon Sep 17 00:00:00 2001 From: Thomas Obermueller Date: Tue, 19 May 2026 11:08:43 +0000 Subject: [PATCH 2/2] fix(code): update lockfile with hedgehog-mode patch hash Generated-By: PostHog Code Task-Id: 9a2867a2-c109-474c-a88b-393a2023e9f3 --- pnpm-lock.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 164f5ef0a..973c1573b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false patchedDependencies: + '@posthog/hedgehog-mode': + hash: 6218f5ec7306fd59ad8d5c0f66ca030d406197739da485953f6737e7911da148 + path: patches/@posthog__hedgehog-mode.patch node-pty: hash: 4dfdf785f5ac51a03f5d6032371cebe89036381acd403621f250a896245647c5 path: patches/node-pty.patch @@ -171,7 +174,7 @@ importers: version: link:../../packages/git '@posthog/hedgehog-mode': specifier: ^0.0.48 - version: 0.0.48(prop-types@15.8.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + version: 0.0.48(patch_hash=6218f5ec7306fd59ad8d5c0f66ca030d406197739da485953f6737e7911da148)(prop-types@15.8.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@posthog/platform': specifier: workspace:* version: link:../../packages/platform @@ -15269,7 +15272,7 @@ snapshots: dependencies: cross-spawn: 7.0.6 - '@posthog/hedgehog-mode@0.0.48(prop-types@15.8.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@posthog/hedgehog-mode@0.0.48(patch_hash=6218f5ec7306fd59ad8d5c0f66ca030d406197739da485953f6737e7911da148)(prop-types@15.8.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: gsap: 3.14.2 lodash: 4.17.23