[Xfce4-commits] <gtk-xfce-engine:peter/gtk3> Round the location of check and radio, removing blur
Peter de Ridder
noreply at xfce.org
Mon Feb 6 22:14:02 CET 2012
Updating branch refs/heads/peter/gtk3
to fa2177b002921d29c2b0323ee78860310ce76874 (commit)
from 7c69418347c59383e9542fa4562cdf4019ca3672 (commit)
commit fa2177b002921d29c2b0323ee78860310ce76874
Author: Peter de Ridder <peter at xfce.org>
Date: Mon Feb 6 22:02:17 2012 +0100
Round the location of check and radio, removing blur
gtk-3.0/xfce_engine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gtk-3.0/xfce_engine.c b/gtk-3.0/xfce_engine.c
index 951bd77..123977a 100644
--- a/gtk-3.0/xfce_engine.c
+++ b/gtk-3.0/xfce_engine.c
@@ -1005,8 +1005,8 @@ static void render_check(GtkThemingEngine * engine, cairo_t * cr, gdouble x, gdo
GtkStateFlags state;
GdkRGBA bg, border, fg;
- x -= (1 + PART_SIZE - width) / 2;
- y -= (1 + PART_SIZE - height) / 2;
+ x -= floor((1 + PART_SIZE - width) / 2);
+ y -= floor((1 + PART_SIZE - height) / 2);
state = gtk_theming_engine_get_state(engine);
gtk_theming_engine_get_background_color(engine, state, &bg);
More information about the Xfce4-commits
mailing list