mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 14:34:26 +01:00
graphics: Better scaling (especially for the case 1 < scale < 2)
This commit is contained in:
parent
13388db9a1
commit
baba009a28
@ -48,7 +48,7 @@ func (c *graphicsContext) SetSize(screenWidth, screenHeight int, screenScale flo
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
intScreenScale := int(math.Floor(screenScale))
|
||||
intScreenScale := int(math.Ceil(screenScale))
|
||||
w := screenWidth * intScreenScale
|
||||
h := screenHeight * intScreenScale
|
||||
offscreen2, err := NewImage(w, h, FilterLinear)
|
||||
|
Loading…
Reference in New Issue
Block a user