mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
610bf6e39f
commit
a82201cfe8
@ -122,7 +122,8 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
|
||||
// c.screen is special: its Y axis is down to up,
|
||||
// and the origin point is lower left.
|
||||
op.GeoM.Scale(c.screenScale, -c.screenScale)
|
||||
op.GeoM.Translate(0, float64(dh))
|
||||
// Make dh an even number to fit the upper side of the screen (#662).
|
||||
op.GeoM.Translate(0, float64((dh+1)/2*2))
|
||||
op.GeoM.Translate(c.offsetX, c.offsetY)
|
||||
|
||||
op.CompositeMode = CompositeModeCopy
|
||||
|
Loading…
Reference in New Issue
Block a user