diff src/menu_processor.asm @ 50:ec4d8503ec45

NEW: user-selectable color schemes
author heinrichsweikamp
date Fri, 27 Sep 2013 23:45:57 +0200
parents 11d4fc797f74
children e7c7c7eeea58
line wrap: on
line diff
--- a/src/menu_processor.asm	Fri Sep 27 14:17:21 2013 +0200
+++ b/src/menu_processor.asm	Fri Sep 27 23:45:57 2013 +0200
@@ -135,7 +135,7 @@
         movwf   win_leftx2              ; Aligned to center.
         
         call    aa_wordprocessor
-        TFT_STD_COLOR
+        call    TFT_standard_color
         return
 
 ;=============================================================================
@@ -250,6 +250,9 @@
         btfss   divemode                ; Not in divemode
         rcall   menu_draw_selected_line
 
+        btfsc   in_color_menu           ; =1: In the color scheme menu
+        call    TFT_show_color_schemes  ; Yes, update the color schemes
+
 		extern	rtc_set_rtc
 		btfss	settime_setdate			; In the Set Time or Set Date menu?
 		bra		menu_line_loop_pre2		; no, skip all following
@@ -437,7 +440,7 @@
         movff   start_item, menu_item
 
 menu_draw_lines_1:
-        TFT_STD_COLOR                   ; Restore color after disabled lines.
+        call    TFT_standard_color     ; Restore color after disabled lines.
         
         movf    menu_item,W
         rcall   menu_read_item
@@ -552,7 +555,7 @@
 		clrf	timeout_counter2		; Reset timeout
         WIN_BOX_BLACK .34,.221,MENU_LEFT-8,MENU_LEFT-2  ; Clear left column
         
-        TFT_STD_COLOR
+        call    TFT_standard_color
         WIN_SMALL  MENU_LEFT-8, 0       ; Arrow symbol only in small font
         movf    start_item,W            ; First line (scrolled)
         subwf   selected_item,W         ; selected - first