f32: replace Affine2D{} with AffineId() for identity transformations

References: https://todo.sr.ht/~eliasnaur/gio/655
Signed-off-by: Walter Werner SCHNEIDER <contact@schnwalter.eu>
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Walter Werner SCHNEIDER
2025-07-12 13:01:54 +03:00
committed by Elias Naur
parent 78b54615cc
commit 4e5a344cc2
5 changed files with 23 additions and 15 deletions
+3 -1
View File
@@ -144,7 +144,9 @@ const (
)
func (c *pointerCollector) resetState() {
c.state = collectState{}
c.state = collectState{
t: f32.AffineId(),
}
c.nodeStack = c.nodeStack[:0]
// Pop every node except the root.
if len(c.q.hitTree) > 0 {