mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: move comments
This commit is contained in:
parent
352fd76312
commit
cc1fd437a1
@ -106,14 +106,14 @@ func (c *gameForUI) Draw(screenScale float64, offsetX, offsetY float64, needsCle
|
|||||||
op.GeoM.Translate(offsetX, offsetY)
|
op.GeoM.Translate(offsetX, offsetY)
|
||||||
op.CompositeMode = CompositeModeCopy
|
op.CompositeMode = CompositeModeCopy
|
||||||
|
|
||||||
// filterScreen works with >=1 scale, but does not well with <1 scale.
|
|
||||||
// Use regular FilterLinear instead so far (#669).
|
|
||||||
switch {
|
switch {
|
||||||
case math.Floor(s) == s:
|
case math.Floor(s) == s:
|
||||||
op.Filter = FilterNearest
|
op.Filter = FilterNearest
|
||||||
case s > 1:
|
case s > 1:
|
||||||
op.Filter = filterScreen
|
op.Filter = filterScreen
|
||||||
default:
|
default:
|
||||||
|
// filterScreen works with >=1 scale, but does not well with <1 scale.
|
||||||
|
// Use regular FilterLinear instead so far (#669).
|
||||||
op.Filter = FilterLinear
|
op.Filter = FilterLinear
|
||||||
}
|
}
|
||||||
c.screen.DrawImage(c.offscreen, op)
|
c.screen.DrawImage(c.offscreen, op)
|
||||||
|
Loading…
Reference in New Issue
Block a user