[gnome-shell] st-theme-node-drawing: Fix implementation of background-size
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-theme-node-drawing: Fix implementation of background-size
- Date: Mon, 6 Feb 2012 13:01:55 +0000 (UTC)
commit 5a3de8d66334f061c0b00d28c42869a256f8fe3e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Feb 2 06:30:14 2012 -0500
st-theme-node-drawing: Fix implementation of background-size
It seems that accidentally, two variables were swapped in one code path
of the background-size implementation, causing interesting but wrong
images for some elements.
https://bugzilla.gnome.org/show_bug.cgi?id=633462
src/st/st-theme-node-drawing.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c
index 12d86d3..08531c7 100644
--- a/src/st/st-theme-node-drawing.c
+++ b/src/st/st-theme-node-drawing.c
@@ -469,12 +469,12 @@ get_background_position (StThemeNode *self,
gdouble scale_w, scale_h;
/* get the background image size */
- background_image_width = allocation->x2 - allocation->x1;
- background_image_height = allocation->y2 - allocation->y1;
+ background_image_width = cogl_texture_get_width (self->background_texture);
+ background_image_height = cogl_texture_get_height (self->background_texture);
/* get the painting area size */
- painting_area_width = cogl_texture_get_width (self->background_texture);
- painting_area_height = cogl_texture_get_height (self->background_texture);
+ painting_area_width = allocation->x2 - allocation->x1;
+ painting_area_height = allocation->y2 - allocation->y1;
/* scale if requested */
get_background_scale (self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]