[gnome-system-tools/rendering-cleanup: 10/21] e-map: Repaint points unconditionally
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools/rendering-cleanup: 10/21] e-map: Repaint points unconditionally
- Date: Tue, 5 Oct 2010 16:40:02 +0000 (UTC)
commit b7f1fb470cdfb629d45b440c0ba9f1f319b9cfa2
Author: Benjamin Otte <otte redhat com>
Date: Mon Oct 4 19:06:31 2010 +0200
e-map: Repaint points unconditionally
The in_view() check is broken because it doesn't repaint points that are
1px outside the window. The point take 2 extra pixels in every direction
after all. And gtk_widget_queue_draw_area() will automatically discard
out-of-range rects anyway.
src/time/e-map/e-map.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index d88c970..d444854 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -1043,8 +1043,6 @@ repaint_point (EMap *map, EMapPoint *point)
{
gdouble px, py;
- if (!e_map_point_is_in_view (map, point)) return;
-
e_map_world_to_window (map, point->longitude, point->latitude, &px, &py);
gtk_widget_queue_draw_area (GTK_WIDGET (map),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]