[gtk] GskTransform: Remove useless fmod check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] GskTransform: Remove useless fmod check
- Date: Fri, 7 Feb 2020 18:22:04 +0000 (UTC)
commit 8388791f87d04e25824353d6d0a3ae155fc91f06
Author: Timm Bäder <mail baedert org>
Date: Sun Feb 2 13:21:36 2020 +0100
GskTransform: Remove useless fmod check
All angles are in the [0; 360[ range
gsk/gsktransform.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gsk/gsktransform.c b/gsk/gsktransform.c
index f116b79acd..b474ec4114 100644
--- a/gsk/gsktransform.c
+++ b/gsk/gsktransform.c
@@ -751,9 +751,6 @@ gsk_rotate_transform_apply_2d (GskTransform *transform,
GskRotateTransform *self = (GskRotateTransform *) transform;
float s, c, xx, xy, yx, yy;
- if (fmodf (self->angle, 360.0f) == 0.0)
- return;
-
_sincos (self->angle, &s, &c);
xx = c * *out_xx + s * *out_xy;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]