mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 01:42:05 +01:00
doc: Add comments #348
This commit is contained in:
parent
6be25d3297
commit
8263e14690
@ -44,6 +44,7 @@ func vertices(parts ImageParts, width, height int, geo *affine.GeoM) []float32 {
|
|||||||
n := 0
|
n := 0
|
||||||
for i := 0; i < l; i++ {
|
for i := 0; i < l; i++ {
|
||||||
dx0, dy0, dx1, dy1 := parts.Dst(i)
|
dx0, dy0, dx1, dy1 := parts.Dst(i)
|
||||||
|
// This is necessary to avoid wrong drawing. See #348.
|
||||||
if dx0 == dx1 || dy0 == dy1 {
|
if dx0 == dx1 || dy0 == dy1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user