]> err.no Git - mapper/commitdiff
Fix (not tested) speed display leaving old numbers behind
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 1 Nov 2007 16:16:11 +0000 (18:16 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 1 Nov 2007 16:16:11 +0000 (18:16 +0200)
src/speed-display.c

index 9c464f2c8a2c6340babeb06f7c7973133ecade00..593a9b051aec32849a0374424b524ede72f30e75 100644 (file)
@@ -55,7 +55,7 @@ buffer = g_strdup_printf("%0.0f", cur_speed);
 pango_layout_set_text(_speed_limit_layout, buffer, -1);
 pango_layout_get_pixel_size(_speed_limit_layout, &width, &height);
 
-gtk_widget_queue_draw_area(_map_widget, x - 5, y - 5, width + 15, height + 5);
+gtk_widget_queue_draw_area(_map_widget, x - 5, y - 5, width * 3 + 15, height + 5);
 gdk_window_process_all_updates();
 
 switch (_speed_location) {