changeset 31000:bcee814fc3a6

I don't think cairo draws circles too badly.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 08 Aug 2010 21:55:06 +0000
parents e898334364f7
children 1884f1f2013b
files pidgin/gtkwhiteboard.c
diffstat 1 files changed, 6 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkwhiteboard.c	Sun Aug 08 21:49:10 2010 +0000
+++ b/pidgin/gtkwhiteboard.c	Sun Aug 08 21:55:06 2010 +0000
@@ -596,26 +596,12 @@
 
 	gdk_cairo_set_source_color(gfx_con, &col);
 
-	/* NOTE 5 is a size constant for now... this is because of how poorly the
-	 * gdk_draw_arc draws small circles
-	 */
-	if(size < 5)
-	{
-		/* Draw a rectangle/square */
-		cairo_rectangle(gfx_con,
-		                x - size / 2, y - size / 2,
-		                size, size);
-		cairo_fill(gfx_con);
-	}
-	else
-	{
-		/* Draw a circle */
-		cairo_arc(gfx_con,
-		          x, y,
-		          size / 2.0,
-		          0.0, 2.0 * M_PI);
-		cairo_fill(gfx_con);
-	}
+	/* Draw a circle */
+	cairo_arc(gfx_con,
+	          x, y,
+	          size / 2.0,
+	          0.0, 2.0 * M_PI);
+	cairo_fill(gfx_con);
 
 	gtk_widget_queue_draw_area(widget,
 							   x - size / 2, y - size / 2,