]> err.no Git - mapper/commitdiff
Use gps heading for the numeric display. Use a tiny bit larger font size.
authorKaj-Michael Lang <milang@tal.org>
Tue, 6 Nov 2007 07:38:46 +0000 (09:38 +0200)
committerKaj-Michael Lang <milang@tal.org>
Tue, 6 Nov 2007 07:38:46 +0000 (09:38 +0200)
src/gtkcompass.c

index 7d67efe9ca9960c6ef87a597a5114cc9a3d466f6..77019baf36e958a089a48ddca4440740e216b2ca 100644 (file)
@@ -309,12 +309,12 @@ hsize=size/2;
 hsize=0;
 #endif
 
-fs=size/42;
+fs=size/41;
 BOUND(fs, 1, 16);
 
 pango_context_set_matrix (compass->context, NULL);
 
-g_snprintf(htext, 8, "%3.0f°", compass->heading);
+g_snprintf(htext, 8, "%3.0f°", compass->data->heading);
 pango_font_description_set_size(compass->fontdesc, (10+fs) * PANGO_SCALE);
 pango_layout_set_font_description(compass->layout, compass->fontdesc);
 pango_layout_set_text(compass->layout, htext, -1);