mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
ui: Bug fix: Wrong framebuffer scale
This commit is contained in:
parent
c97cae9598
commit
e2cf288ed7
@ -201,7 +201,7 @@ event:
|
||||
}
|
||||
// This is usually 1, but sometimes more than 1 (e.g. Retina Mac)
|
||||
fw, _ := window.GetFramebufferSize()
|
||||
u.framebufferScale = fw / width / scale
|
||||
u.framebufferScale = fw / width / s
|
||||
u.width = width
|
||||
u.height = height
|
||||
u.scale = scale
|
||||
|
Loading…
Reference in New Issue
Block a user