GskTransform: add assertions to make normalize_angle() intentions clear

360deg should be expressed as 0deg and no angle should ever be
negative.
This commit is contained in:
Timm Bäder 2020-02-02 13:20:40 +01:00 committed by Matthias Clasen
parent 4cfac3b91c
commit cbb05a3eab

View File

@ -834,6 +834,9 @@ normalize_angle (float angle)
if (f < 0)
f = 360 + f;
g_assert (f < 360.0);
g_assert (f >= 0.0);
return f;
}