Diff of /trunk/src/osm-gps-map.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 85 by harbaum, Fri Aug 28 12:07:16 2009 UTC revision 87 by harbaum, Mon Aug 31 12:01:28 2009 UTC
# Line 1446  osm_gps_map_map_redraw (OsmGpsMap *map) Line 1446  osm_gps_map_map_redraw (OsmGpsMap *map)
1446    
1447      priv->idle_map_redraw = 0;      priv->idle_map_redraw = 0;
1448    
1449        /* don't redraw the entire map while the OSD is doing */
1450        /* some animation or the like. This is to keep the animation */
1451        /* fluid */
1452        if (priv->osd->busy(priv->osd))
1453            return FALSE;
1454    
1455      /* the motion_notify handler uses priv->pixmap to redraw the area; if we      /* the motion_notify handler uses priv->pixmap to redraw the area; if we
1456       * change it while we are dragging, we will end up showing it in the wrong       * change it while we are dragging, we will end up showing it in the wrong
1457       * place. This could be fixed by carefully recompute the coordinates, but       * place. This could be fixed by carefully recompute the coordinates, but
# Line 2183  osm_gps_map_expose (GtkWidget *widget, G Line 2189  osm_gps_map_expose (GtkWidget *widget, G
2189      GdkDrawable *drawable = widget->window;      GdkDrawable *drawable = widget->window;
2190  #endif  #endif
2191    
2192      if (!priv->dragging)      if (!priv->dragging && event)
2193      {      {
2194          gdk_draw_drawable (drawable,          gdk_draw_drawable (drawable,
2195                             widget->style->fg_gc[GTK_WIDGET_STATE (widget)],                             widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
# Line 3019  void osm_gps_map_register_osd(OsmGpsMap Line 3025  void osm_gps_map_register_osd(OsmGpsMap
3025      priv->osd = osd;      priv->osd = osd;
3026  }  }
3027    
3028    void
3029    osm_gps_map_repaint (OsmGpsMap *map) {
3030        osm_gps_map_expose (GTK_WIDGET(map), NULL);
3031    }
3032    
3033  #endif  #endif

Legend:
Removed from v.85  
changed lines
  Added in v.87