[gtk+/wip/css] borderimage: Fix border-image-width interpretation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css] borderimage: Fix border-image-width interpretation
- Date: Tue, 3 Jan 2012 16:29:40 +0000 (UTC)
commit a5f0b3bbe78fc20a266bb1950cfc492d8d050b89
Author: Benjamin Otte <otte redhat com>
Date: Tue Jan 3 16:40:32 2012 +0100
borderimage: Fix border-image-width interpretation
It doesn't override, it multiplies.
gtk/gtkborderimage.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c
index f9c1246..83a12c1 100644
--- a/gtk/gtkborderimage.c
+++ b/gtk/gtkborderimage.c
@@ -363,7 +363,12 @@ _gtk_border_image_render (GtkBorderImage *image,
int h, v;
if (image->width != NULL)
- border_width = image->width;
+ {
+ border_width->top *= image->width->top;
+ border_width->right *= image->width->right;
+ border_width->bottom *= image->width->bottom;
+ border_width->left *= image->width->left;
+ }
_gtk_css_image_get_concrete_size (image->source,
0, 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]