murrine r130 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r130 - in trunk: . src
- Date: Fri, 9 Jan 2009 07:55:06 +0000 (UTC)
Author: acimitan
Date: Fri Jan 9 07:55:06 2009
New Revision: 130
URL: http://svn.gnome.org/viewvc/murrine?rev=130&view=rev
Log:
2009-01-09 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw.c (murrine_scale_draw_gradient):
* src/murrine_draw_rgba.c (murrine_scale_draw_gradient):
Fixed a misalignment of the scale's hightlight.
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 Jan 9 07:55:06 2009
@@ -329,17 +329,17 @@
if (horizontal)
{
- cairo_move_to (cr, x+1, height-1);
- cairo_rel_line_to (cr, 0, -height+2);
+ cairo_move_to (cr, x+1, y+height-0.5);
+ cairo_rel_line_to (cr, 0, -height+1.5);
cairo_rel_line_to (cr, width-2, 0);
- cairo_rel_line_to (cr, 0, height-2);
+ cairo_rel_line_to (cr, 0, height-1.5);
}
else
{
- cairo_move_to (cr, width-1, y+1);
- cairo_rel_line_to (cr, -width+2, 0);
+ cairo_move_to (cr, x+width-0.5, y+1);
+ cairo_rel_line_to (cr, -width+1.5, 0);
cairo_rel_line_to (cr, 0, height-2);
- cairo_rel_line_to (cr, width-2, 0);
+ cairo_rel_line_to (cr, width-1.5, 0);
}
murrine_set_color_rgba (cr, &lightborder, 0.5);
cairo_stroke (cr);
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Fri Jan 9 07:55:06 2009
@@ -315,17 +315,17 @@
if (horizontal)
{
- cairo_move_to (cr, x+1, height-1);
- cairo_rel_line_to (cr, 0, -height+2);
+ cairo_move_to (cr, x+1, y+height-0.5);
+ cairo_rel_line_to (cr, 0, -height+1.5);
cairo_rel_line_to (cr, width-2, 0);
- cairo_rel_line_to (cr, 0, height-2);
+ cairo_rel_line_to (cr, 0, height-1.5);
}
else
{
- cairo_move_to (cr, width-1, y+1);
- cairo_rel_line_to (cr, -width+2, 0);
+ cairo_move_to (cr, x+width-0.5, y+1);
+ cairo_rel_line_to (cr, -width+1.5, 0);
cairo_rel_line_to (cr, 0, height-2);
- cairo_rel_line_to (cr, width-2, 0);
+ cairo_rel_line_to (cr, width-1.5, 0);
}
murrine_set_color_rgba (cr, &lightborder, 0.5);
cairo_stroke (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]