forked from AuroraMiddleware/gtk
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:
parent
4cfac3b91c
commit
cbb05a3eab
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user