From 7246b9eae3098f423e790170caba00f6aac76a97 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 6 Nov 2007 09:38:46 +0200 Subject: [PATCH] Use gps heading for the numeric display. Use a tiny bit larger font size. --- src/gtkcompass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5