gtk-engines r1283 - in trunk: . engines/clearlooks/src
- From: bberg svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1283 - in trunk: . engines/clearlooks/src
- Date: Sun, 30 Nov 2008 16:19:33 +0000 (UTC)
Author: bberg
Date: Sun Nov 30 16:19:33 2008
New Revision: 1283
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1283&view=rev
Log:
2008-11-30 Benjamin Berg <benjamin sipsolutions net>
* engines/clearlooks/src/clearlooks_draw.c:
(clearlooks_draw_radiobutton):
* engines/clearlooks/src/clearlooks_draw_gummy.c:
(clearlooks_gummy_draw_radiobutton):
Fix inconsistent radio button drawing.
Modified:
trunk/ChangeLog
trunk/engines/clearlooks/src/clearlooks_draw.c
trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
Modified: trunk/engines/clearlooks/src/clearlooks_draw.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_draw.c Sun Nov 30 16:19:33 2008
@@ -2120,11 +2120,13 @@
{
if (inconsistent)
{
+ gdouble line_width = floor (radius * 2 / 3);
+
cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND);
- cairo_set_line_width (cr, ceil (radius * 2 / 3));
+ cairo_set_line_width (cr, line_width);
- cairo_move_to (cr, ceil (cx - radius/3.0), ceil (cy));
- cairo_line_to (cr, ceil (cx + radius/3.0), ceil (cy));
+ cairo_move_to (cr, ceil (cx - radius/3.0 - line_width) + line_width, ceil (cy - line_width) + line_width);
+ cairo_line_to (cr, floor (cx + radius/3.0 + line_width) - line_width, ceil (cy - line_width) + line_width);
ge_cairo_set_color (cr, dot);
cairo_stroke (cr);
Modified: trunk/engines/clearlooks/src/clearlooks_draw_gummy.c
==============================================================================
--- trunk/engines/clearlooks/src/clearlooks_draw_gummy.c (original)
+++ trunk/engines/clearlooks/src/clearlooks_draw_gummy.c Sun Nov 30 16:19:33 2008
@@ -1443,11 +1443,13 @@
{
if (inconsistent)
{
+ gdouble line_width = floor (radius * 2 / 3);
+
cairo_set_line_cap(cr, CAIRO_LINE_CAP_ROUND);
- cairo_set_line_width (cr, ceil (radius * 2 / 3));
+ cairo_set_line_width (cr, line_width);
- cairo_move_to (cr, ceil (cx - radius/3.0), ceil (cy));
- cairo_line_to (cr, ceil (cx + radius/3.0), ceil (cy));
+ cairo_move_to (cr, ceil (cx - radius/3.0 - line_width) + line_width, ceil (cy - line_width) + line_width);
+ cairo_line_to (cr, floor (cx + radius/3.0 + line_width) - line_width, ceil (cy - line_width) + line_width);
ge_cairo_set_color (cr, dot);
cairo_stroke (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]