mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
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:
parent
0d84d8dccb
commit
9da54db1d9
@ -65,8 +65,8 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo
|
|||||||
}
|
}
|
||||||
c.offscreen = newVolatileImage(screenWidth, screenHeight)
|
c.offscreen = newVolatileImage(screenWidth, screenHeight)
|
||||||
|
|
||||||
w := int(math.Ceil(float64(screenWidth) * screenScale))
|
w := int(float64(screenWidth) * screenScale)
|
||||||
h := int(math.Ceil(float64(screenHeight) * screenScale))
|
h := int(float64(screenHeight) * screenScale)
|
||||||
px0, py0, px1, py1 := ui.ScreenPadding()
|
px0, py0, px1, py1 := ui.ScreenPadding()
|
||||||
c.screen = newImageWithScreenFramebuffer(w+int(math.Ceil(px0+px1)), h+int(math.Ceil(py0+py1)))
|
c.screen = newImageWithScreenFramebuffer(w+int(math.Ceil(px0+px1)), h+int(math.Ceil(py0+py1)))
|
||||||
c.screenWidth = w
|
c.screenWidth = w
|
||||||
|
Loading…
Reference in New Issue
Block a user