Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
fix debug ui when scale & size are set (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
hirnsalat authored Sep 20, 2023
1 parent 14a56b2 commit ad0e08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad0e08c

Please sign in to comment.