- #ifdef SOFT_MENU//Modifed by ChenZhao on 2004-9-3 11:22 WP
- #define WORNINGCOLOR 13
- #define WORNINGFONTCOLOR 7
- #define SETUP_BGCOLOR 15
- #define PAGE_BGCOLOR 6
- #define PAGE_SDCOLOR 3
- #ifdef EASTECH_DP3240_SETUP_MENU
- #define ITEM_BGCOLOR 0
- #else
- #define ITEM_BGCOLOR 14
- #endif
- #define ITEM_FILLCOLOR 6
- #define ITEM_FONTCOLOR 10
- #define SELECT_BGCOLOR SETUP_BGCOLOR
- #ifdef EASTECH_DP3240_SETUP_MENU
- #define SELECT_FONTBGCOLOR 0
- #else
- #define SELECT_FONTBGCOLOR 14
- #endif
- #define SELECT_FILLCOLOR 6
- #define SELECT_FONTCOLOR 10
- #define SELECT_ANTIFONTCOLOR 1
- #define GUIDE_BGCOLOR SETUP_BGCOLOR
- #define GUIDE_FILLCOLOR 6
- #define GUIDE_FONTCOLOR 10
- #define TITLE_FONTCOLOR 4
- #define TITLE_BGCOLOR ITEM_BGCOLOR
- #ifdef SHOW_PAGE_TITLE
- #define TITLE_HEIGHT SETUP_BUTTON_HEIGHT//SETUP_BUTTON_HEIGHT
- #else
- #define TITLE_HEIGHT 0
- #endif//SHOW_SETUP_GUIDE
- #ifdef SHOW_SETUP_GUIDE
- #define GUIDE_HEIGHT (SETUP_BUTTON_HEIGHT*2)
- #else
- #define GUIDE_HEIGHT 0
- #endif//SHOW_SETUP_GUIDE
- #define ITEM_ARENA_HEIGHT (SETUP_BUTTON_HEIGHT*SETUP_MAX_LINE)
- #ifdef EASTECH_SETUPMENU
- #define PAGE_TITLE_HEIGHT (72)
- #else
- #define PAGE_TITLE_HEIGHT (48)
- #endif
- #define CUSTM_YSTART 2//unit item_index
- #define BORDER_WIDTH 4 //unit 2pixel/1width
- #define PAGE_XSTART 0//unit 2pixel/1width
- #define PAGE_XWIDTH 48//unit 2pixel/1width
- #define PAGE_ICON_XSTART 12 //unit 2pixel/1width
- #define ITEM_XSTART (PAGE_XSTART+PAGE_XWIDTH+2)//unit 2pixel/1width
- #define ITEM_WIDTH (9*14)//unit 2pixel/1width
- #define ITEM_TEXT_XSTART 4//unit 2pixel/1width
- #define SELECT_XSTART (ITEM_XSTART+ITEM_WIDTH)//unit 2pixel/1width
- #define SELECT_WIDTH (16*8)//unit 2pixel/1width
- #define SELECT_TEXT_XSTART 8//unit 2pixel/1width
- #define GUIDE_YSTART (TITLE_HEIGHT+ITEM_ARENA_HEIGHT)//unit 2pixel/1width
- #define GUIDE_XSTART 0//unit 2pixel/1width
- #ifdef EASTECH_DP3240_SETUP_MENU
- #define TITLE_XSTART (ITEM_XSTART+8)
- #define TITLE_XWIDTH (ITEM_WIDTH+SELECT_WIDTH-16)
- #else
- #define TITLE_XSTART (ITEM_XSTART)
- #define TITLE_XWIDTH (ITEM_WIDTH-8)
- #endif
- #define TITLE_YSTART 0
- #define TITLE_TEXT_XSTART 4//unit 2pixel/1width
- #define SETUP_REGION_HEIGHT (TITLE_HEIGHT+GUIDE_HEIGHT+ITEM_ARENA_HEIGHT)
- #define _SETUP_REGION_WIDTH (SELECT_XSTART+SELECT_WIDTH)//unit 2pixel/1width
- #if (_SETUP_REGION_WIDTH % 8==0)
- #define SETUP_REGION_WIDTH _SETUP_REGION_WIDTH
- #else
- #define SETUP_REGION_WIDTH (8+_SETUP_REGION_WIDTH/8*8)
- #endif
- //==============================================
- #define R_CORNER_LU 0x00//left up corner
- #define R_CORNER_RU 0x01
- #define R_CORNER_RD 0x02
- #define R_CORNER_LD 0x03
- #define R_CORNER_LINE 0x04//Draw line only
- #define R_CORNER_TRANS 0x08//Draw Front color only
- #define R_CORNER_INVERT 0x10//invert the Front color and backgroundcolor,use couple with R_CORNER_TRANS
- //==============================================
- #define SETUPGUI_MENU 0
- #define SETUPGUI_PASSWORD 1
- #define SETUPGUI_TESTINTERLACE 2
- #define SETUPGUI_VIDEO 3
- //==============================================
- #define PASSWORDS_NULL 0
- #define PASSWORDS_INIT 1
- #define PASSWORDS_OLD 2
- #define PASSWORDS_NEW 3
- #define PASSWORDS_CONFIRM 4
- #define PASSWORDS_ENTER 5
- #define PASSWORDS_UNLOCK 6
- #define PASSWORDGUI_XSTART (ITEM_XSTART+4)
- #define PASSWORDGUI_XPW 72
- #define PASSWORDGUI_YSTART (TITLE_HEIGHT+SETUP_BUTTON_HEIGHT*2)
- #define PASSWORDGUI_XLEN (23*8+4)
- #define PASSWORDGUI_YLEN (5*SETUP_BUTTON_HEIGHT+12)
- #define PASSWORDGUI_SCXLEN SETUP_BUTTON_HEIGHT
- #define PASSWORDGUI_SCYLEN SETUP_BUTTON_HEIGHT*2
- #define PASSWORDGUI_SCXS (PASSWORDGUI_XSTART+PASSWORDGUI_XLEN-PASSWORDGUI_SCXLEN-2)
- #define PASSWORDGUI_SCXE (PASSWORDGUI_XSTART+PASSWORDGUI_XLEN-2)
- #define PASSWORDGUI_SCYS (PASSWORDGUI_YSTART+1)
- #define PASSWORDGUI_SCYE (PASSWORDGUI_YSTART+PASSWORDGUI_SCYLEN+3)
- #define PASSWORDGUI_FONTCOLOR 10
- #define PASSWORDGUI_BGCOLOR 3
- #define PASSWORDGUI_FILLCOLOR 6
- //=============================================
- #define VIDEOSTATE_NULL 0
- #define VIDEOSTATE_BRIHTNESS 1
- #define VIDEOSTATE_CONTRAST 2
- #define VIDEOSTATE_HUE 3
- #define VIDEOSTATE_SATURATION 4
- #endif//SOFT_MENU