murrine r90 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r90 - in trunk: . src
- Date: Tue, 30 Sep 2008 01:13:51 +0000 (UTC)
Author: acimitan
Date: Tue Sep 30 01:13:51 2008
New Revision: 90
URL: http://svn.gnome.org/viewvc/murrine?rev=90&view=rev
Log:
2008-09-30 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw.c (murrine_draw_button):
* src/murrine_draw_rgba.c (murrine_rgba_draw_button):
Fixes a bug when drawing inset on buttons with thickness < 2
Modified:
trunk/ChangeLog
trunk/src/murrine_draw.c
trunk/src/murrine_draw_rgba.c
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Tue Sep 30 01:13:51 2008
@@ -176,17 +176,18 @@
cairo_set_line_width (cr, 1.0);
/* Start drawing the inset/shadow */
+
if (!widget->active && !widget->disabled && widget->reliefstyle > 1)
{
murrine_rounded_rectangle (cr, xos, yos, width-(xos*2), height-(yos*2), widget->roundness, widget->corners);
murrine_set_color_rgba (cr, &border, 0.18);
cairo_stroke (cr);
}
- else if (widget->reliefstyle != 0)
+ else if (widget->reliefstyle != 0 && xos >= 0.5 && yos >= 0.5)
murrine_draw_inset (cr, &widget->parentbg, xos-0.5, yos-0.5,
width-(xos*2)+1, height-(yos*2)+1,
widget->roundness+1, widget->corners);
-
+
murrine_mix_color (&border, &fill, 0.4, &border);
/* Draw the bg */
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Tue Sep 30 01:13:51 2008
@@ -179,7 +179,7 @@
murrine_set_color_rgba (cr, &border, 0.16);
cairo_stroke (cr);
}
- else if (widget->reliefstyle != 0)
+ else if (widget->reliefstyle != 0 && xos >= 0.5 && yos >= 0.5)
murrine_draw_inset (cr, &widget->parentbg, xos-0.5, yos-0.5,
width-(xos*2)+1, height-(yos*2)+1,
widget->roundness+1, widget->corners);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]