Revert "graphics: Use math.Ceil for the screen framebuffer size"

This reverts commit 0b60471ac0.

Reason: This doesn't have any effect.
This commit is contained in:
Hajime Hoshi 2019-01-17 11:21:03 +09:00
parent 0d84d8dccb
commit 9da54db1d9

View File

@ -65,8 +65,8 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo
}
c.offscreen = newVolatileImage(screenWidth, screenHeight)
w := int(math.Ceil(float64(screenWidth) * screenScale))
h := int(math.Ceil(float64(screenHeight) * screenScale))
w := int(float64(screenWidth) * screenScale)
h := int(float64(screenHeight) * screenScale)
px0, py0, px1, py1 := ui.ScreenPadding()
c.screen = newImageWithScreenFramebuffer(w+int(math.Ceil(px0+px1)), h+int(math.Ceil(py0+py1)))
c.screenWidth = w