diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-01-11 09:23:37 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-01-11 09:23:37 +0100 |
commit | 2f453cc57e37638178f0cf2241609e829963af51 (patch) | |
tree | 32ec093b83ab476a50d9cbd308d05ff74c4dabbd /gsk/gskroundedrect.c | |
parent | 882290b479c02f2bc6d1d3d85b09dc3cc66dc9b9 (diff) | |
download | gtk+-2f453cc57e37638178f0cf2241609e829963af51.tar.gz |
gsk_rounded_rect_init_copy: Don't normalize
This was showing up quite high on the profiles, and there is
no real reason for copy to normalize, as the source is a
GskRoundedRect which should be normalized already unless
you did something very strange (and then you should have normalized
manually).
Diffstat (limited to 'gsk/gskroundedrect.c')
-rw-r--r-- | gsk/gskroundedrect.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gsk/gskroundedrect.c b/gsk/gskroundedrect.c index 03f987e964..c381e47911 100644 --- a/gsk/gskroundedrect.c +++ b/gsk/gskroundedrect.c @@ -118,8 +118,8 @@ gsk_rounded_rect_init (GskRoundedRect *self, * * Initializes @self using the given @src rectangle. * - * This function will implicitly normalize the #GskRoundedRect - * before returning. + * This function will not normalize the #GskRoundedRect, so + * make sure the source is normalized. * * Returns: (transfer none): the initialized rectangle * @@ -131,8 +131,6 @@ gsk_rounded_rect_init_copy (GskRoundedRect *self, { *self = *src; - gsk_rounded_rect_normalize_in_place (self); - return self; } |