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

Commit

Permalink
fix sizing issue with global scale
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Nov 25, 2023
1 parent a7e1825 commit 39ec8f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kaboom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6253,8 +6253,8 @@ export default (gopt: KaboomOpt = {}): KaboomCtx => {
if (!fixedSize) {
gfx.frameBuffer.free()
gfx.frameBuffer = new FrameBuffer(ggl, gl.drawingBufferWidth, gl.drawingBufferHeight)
gfx.width = gl.drawingBufferWidth / pixelDensity
gfx.height = gl.drawingBufferHeight / pixelDensity
gfx.width = gl.drawingBufferWidth / pixelDensity / gscale
gfx.height = gl.drawingBufferHeight / pixelDensity / gscale
}
})

Expand Down

0 comments on commit 39ec8f3

Please sign in to comment.