mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48: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)
|
// This is usually 1, but sometimes more than 1 (e.g. Retina Mac)
|
||||||
fw, _ := window.GetFramebufferSize()
|
fw, _ := window.GetFramebufferSize()
|
||||||
u.framebufferScale = fw / width / scale
|
u.framebufferScale = fw / width / s
|
||||||
u.width = width
|
u.width = width
|
||||||
u.height = height
|
u.height = height
|
||||||
u.scale = scale
|
u.scale = scale
|
||||||
|
Loading…
Reference in New Issue
Block a user