From: Kaj-Michael Lang Date: Tue, 6 Nov 2007 07:38:46 +0000 (+0200) Subject: Use gps heading for the numeric display. Use a tiny bit larger font size. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7246b9eae3098f423e790170caba00f6aac76a97;p=mapper Use gps heading for the numeric display. Use a tiny bit larger font size. --- diff --git a/src/gtkcompass.c b/src/gtkcompass.c index 7d67efe..77019ba 100644 --- a/src/gtkcompass.c +++ b/src/gtkcompass.c @@ -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);