mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-02 22:14:29 +01:00
graphics: Add comments
This commit is contained in:
parent
18daa04173
commit
1f4e593099
@ -64,6 +64,7 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo
|
|||||||
}
|
}
|
||||||
c.offscreen = newVolatileImage(screenWidth, screenHeight)
|
c.offscreen = newVolatileImage(screenWidth, screenHeight)
|
||||||
|
|
||||||
|
// Round up the screensize not to cause glitches e.g. on Xperia (#622)
|
||||||
w := int(math.Ceil(float64(screenWidth) * screenScale))
|
w := int(math.Ceil(float64(screenWidth) * screenScale))
|
||||||
h := int(math.Ceil(float64(screenHeight) * screenScale))
|
h := int(math.Ceil(float64(screenHeight) * screenScale))
|
||||||
px0, py0, px1, py1 := ui.ScreenPadding()
|
px0, py0, px1, py1 := ui.ScreenPadding()
|
||||||
|
Loading…
Reference in New Issue
Block a user