[cheese] lib: Fix blue background in chooser widget
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] lib: Fix blue background in chooser widget
- Date: Fri, 25 Mar 2011 00:00:54 +0000 (UTC)
commit bf6adc935f05e27c79df3773161ddc3191b4ff54
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 24 18:03:28 2011 +0000
lib: Fix blue background in chooser widget
By updating um-crop-area.[ch] from gnome-control-center.
https://bugzilla.gnome.org/show_bug.cgi?id=522199
libcheese/um-crop-area.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/libcheese/um-crop-area.c b/libcheese/um-crop-area.c
index 177ec02..3cfe9de 100644
--- a/libcheese/um-crop-area.c
+++ b/libcheese/um-crop-area.c
@@ -115,9 +115,9 @@ update_pixbufs (UmCropArea *area)
allocation.width, allocation.height);
gtk_style_context_get_background_color (context, gtk_style_context_get_state (context), &color);
- pixel = (((gint)(color.red * 255)) << 16) |
- (((gint)(color.green * 255)) << 8) |
- ((gint)(color.blue * 255));
+ pixel = (((gint)(color.red * 1.0)) << 16) |
+ (((gint)(color.green * 1.0)) << 8) |
+ ((gint)(color.blue * 1.0));
gdk_pixbuf_fill (area->priv->pixbuf, pixel);
width = gdk_pixbuf_get_width (area->priv->browse_pixbuf);
@@ -368,7 +368,7 @@ eval_radial_line (gdouble center_x, gdouble center_y,
gdouble decision_intercept;
decision_slope = (bounds_y - center_y) / (bounds_x - center_x);
- decision_intercept = bounds_y = -(decision_slope * bounds_x);
+ decision_intercept = -(decision_slope * bounds_x);
return (int) (decision_slope * user_x + decision_intercept);
}
@@ -815,3 +815,4 @@ um_crop_area_set_constrain_aspect (UmCropArea *area,
area->priv->aspect = -1;
}
}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]