ui: Bug fix: Wrong framebuffer scale

This commit is contained in:
Hajime Hoshi 2016-02-26 03:50:00 +09:00
parent c97cae9598
commit e2cf288ed7

View File

@ -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