mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/affine: Refactoring
This commit is contained in:
parent
1706d9436a
commit
18757cff16
@ -106,11 +106,9 @@ func (c *ColorM) ScaleOnly() bool {
|
||||
return false
|
||||
}
|
||||
}
|
||||
if c.translate != nil {
|
||||
for _, e := range c.translate {
|
||||
if e != 0 {
|
||||
return false
|
||||
}
|
||||
for _, e := range c.translate {
|
||||
if e != 0 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user