From ad0e08ce5d08fa1806b9a925b5ac3ea9907f0c5f Mon Sep 17 00:00:00 2001 From: hirnsalat Date: Wed, 20 Sep 2023 13:34:14 +0200 Subject: [PATCH] fix debug ui when scale & size are set (#755) --- src/kaboom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaboom.ts b/src/kaboom.ts index f516ea9c6..fceb7983a 100644 --- a/src/kaboom.ts +++ b/src/kaboom.ts @@ -625,7 +625,7 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => { ) const frameBuffer = (gopt.width && gopt.height) - ? new FrameBuffer(gopt.width * pixelDensity, gopt.height * pixelDensity) + ? new FrameBuffer(gopt.width * pixelDensity * gscale, gopt.height * pixelDensity * gscale) : new FrameBuffer(gl.drawingBufferWidth, gl.drawingBufferHeight) let bgColor: null | Color = null