mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
Revert: graphics: Use an even number for screen height offset
This reverts a82201cfe8
.
I think this change does not make sense.
This commit is contained in:
parent
0b60471ac0
commit
0d84d8dccb
@ -124,8 +124,7 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
|
|||||||
// c.screen is special: its Y axis is down to up,
|
// c.screen is special: its Y axis is down to up,
|
||||||
// and the origin point is lower left.
|
// and the origin point is lower left.
|
||||||
op.GeoM.Scale(c.screenScale, -c.screenScale)
|
op.GeoM.Scale(c.screenScale, -c.screenScale)
|
||||||
// Make the screen height an even number to fit the upper side of the screen (#662).
|
op.GeoM.Translate(0, float64(c.screenHeight))
|
||||||
op.GeoM.Translate(0, float64((c.screenHeight+1)/2*2))
|
|
||||||
case graphicsdriver.VUpward:
|
case graphicsdriver.VUpward:
|
||||||
op.GeoM.Scale(c.screenScale, c.screenScale)
|
op.GeoM.Scale(c.screenScale, c.screenScale)
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user