murrine r76 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r76 - in trunk: . src
- Date: Fri, 26 Sep 2008 23:34:52 +0000 (UTC)
Author: acimitan
Date: Fri Sep 26 23:34:52 2008
New Revision: 76
URL: http://svn.gnome.org/viewvc/murrine?rev=76&view=rev
Log:
2008-09-27 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw.c (murrine_draw_button),
(murrine_draw_scrollbar_stepper):
* src/murrine_draw_rgba.c (murrine_rgba_draw_button),
(murrine_rgba_draw_scrollbar_stepper):
Speed improvement in buttons and scrollbar steppers rendering.
Maybe unnoticeable but there is ;)
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 Fri Sep 26 23:34:52 2008
@@ -200,9 +200,9 @@
/* Draw the bg */
if (widget->roundness < 2)
- cairo_rectangle (cr, xos + 1, yos + 1, width-(xos*2)-2, height-(yos*2)-2);
+ cairo_rectangle (cr, xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2);
else
- clearlooks_rounded_rectangle (cr, xos+0.5, yos+0.5, width-(xos*2)-1, height-(yos*2)-1, widget->roundness+1, widget->corners);
+ clearlooks_rounded_rectangle (cr, xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2, widget->roundness, widget->corners);
murrine_set_gradient (cr, &fill, mrn_gradient_custom, xos+1, yos+1, 0, height-(yos*2)-2, widget->mrn_gradient.gradients, FALSE);
cairo_save (cr);
@@ -1584,7 +1584,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-2, height-2);
else
- murrine_rounded_rectangle (cr, 0.5, 0.5, width-1, height-1, widget->roundness+1, widget->corners);
+ murrine_rounded_rectangle (cr, 1, 1, width-2, height-2, widget->roundness, widget->corners);
murrine_set_gradient (cr, fill, widget->mrn_gradient, 1, 1, 0, height-2, widget->mrn_gradient.gradients, FALSE);
cairo_save (cr);
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Fri Sep 26 23:34:52 2008
@@ -200,9 +200,9 @@
/* Draw the bg */
if (widget->roundness < 2)
- cairo_rectangle (cr, xos + 1, yos + 1, width-(xos*2)-2, height-(yos*2)-2);
+ cairo_rectangle (cr, xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2);
else
- clearlooks_rounded_rectangle (cr, xos+0.5, yos+0.5, width-(xos*2)-1, height-(yos*2)-1, widget->roundness+1, widget->corners);
+ clearlooks_rounded_rectangle (cr, xos+1, yos+1, width-(xos*2)-2, height-(yos*2)-2, widget->roundness, widget->corners);
murrine_set_gradient (cr, &fill, mrn_gradient_custom, xos+1, yos+1, 0, height-(yos*2)-2, widget->mrn_gradient.gradients, FALSE);
cairo_save (cr);
@@ -1330,7 +1330,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-2, height-2);
else
- clearlooks_rounded_rectangle (cr, 0.5, 0.5, width-1, height-1, widget->roundness+1, widget->corners);
+ clearlooks_rounded_rectangle (cr, 1, 1, width-2, height-2, widget->roundness, widget->corners);
murrine_set_gradient (cr, fill, widget->mrn_gradient, 1, 1, 0, height-2, widget->mrn_gradient.gradients, FALSE);
cairo_save (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]