cpw.qulogic.cairo: c10b48be: I don't think cairo draws circles too ba...
qulogic at pidgin.im
qulogic at pidgin.im
Sun Aug 8 18:31:44 EDT 2010
----------------------------------------------------------------------
Revision: c10b48bebcd04adcd6dad3d199fe09675a28219d
Parent: 07e4be4197d1838a154925c2940cabb58bd9c146
Author: qulogic at pidgin.im
Date: 08/08/10 17:55:06
Branch: im.pidgin.cpw.qulogic.cairo
URL: http://d.pidgin.im/viewmtn/revision/info/c10b48bebcd04adcd6dad3d199fe09675a28219d
Changelog:
I don't think cairo draws circles too badly.
Changes against parent 07e4be4197d1838a154925c2940cabb58bd9c146
patched pidgin/gtkwhiteboard.c
-------------- next part --------------
============================================================
--- pidgin/gtkwhiteboard.c f4cdddcd7a1a3b6e7dbcf7e960c7ab4070f0f120
+++ pidgin/gtkwhiteboard.c 9246da3f7a740885b6658d579e3e0f9173d88184
@@ -596,26 +596,12 @@ static void pidgin_whiteboard_draw_brush
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,
More information about the Commits
mailing list