| 622 |
622 |
| 623 gtk_widget_queue_draw_area(widget, |
623 gtk_widget_queue_draw_area(widget, |
| 624 update_rect.x, update_rect.y, |
624 update_rect.x, update_rect.y, |
| 625 update_rect.width, update_rect.height); |
625 update_rect.width, update_rect.height); |
| 626 |
626 |
| 627 gdk_gc_unref(gfx_con); |
627 g_object_unref(G_OBJECT(gfx_con)); |
| 628 } |
628 } |
| 629 |
629 |
| 630 /* Uses Bresenham's algorithm (as provided by Wikipedia) */ |
630 /* Uses Bresenham's algorithm (as provided by Wikipedia) */ |
| 631 static void pidgin_whiteboard_draw_brush_line(PurpleWhiteboard *wb, int x0, int y0, int x1, int y1, int color, int size) |
631 static void pidgin_whiteboard_draw_brush_line(PurpleWhiteboard *wb, int x0, int y0, int x1, int y1, int color, int size) |
| 632 { |
632 { |