From 9ff25bbe10bc701524001809f15e8de13a50d3a0 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Sat, 28 Mar 2009 08:28:42 +0700 Subject: [PATCH] Display: first lcd then matrix looks better --- prolooks/Display.vala | 3 ++- prolooks/ValueDisplay.vala | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/prolooks/Display.vala b/prolooks/Display.vala index 67b567d..668e2ab 100644 --- a/prolooks/Display.vala +++ b/prolooks/Display.vala @@ -307,10 +307,11 @@ public abstract class DisplayBase : DrawingArea { inner_glass_rim (cr, 0, 0, _width - 8, _height - 9, 2); cr.translate (3.0, 3.0); - dot_matrix (cr, 0, 0, inner_width, inner_height, matrix_dot_color ()); lcd(cr, inner_width, inner_height); + dot_matrix (cr, 0, 0, inner_width, inner_height, matrix_dot_color ()); + draw_contents(cr, event); reflection(cr, inner_width, inner_height); diff --git a/prolooks/ValueDisplay.vala b/prolooks/ValueDisplay.vala index 63c06ed..9f3066b 100644 --- a/prolooks/ValueDisplay.vala +++ b/prolooks/ValueDisplay.vala @@ -54,12 +54,12 @@ public class ValueDisplay : DrawingArea { var inner_width = width - 6; var inner_height = height - 6; + DisplayBase.lcd(cr, inner_width, inner_height, 3.0); + if (show_matrix) { DisplayBase.dot_matrix (cr, 0.5, 0.5, inner_width, inner_height, DisplayBase.matrix_dot_color ()); } - DisplayBase.lcd(cr, inner_width, inner_height, 3.0); - // draw text double font_size = inner_height; -- 2.11.4.GIT