Rev 5811 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5811 | Rev 5825 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | { |
57 | { |
58 | int N; |
58 | int N; |
Line 59... | Line 59... | ||
59 | 59 | ||
60 | for (N=0; N |
60 | for (N=0; N |
61 | { |
61 | { |
62 | if (N==menu.current) |
62 | if (N==menu.cur_y) |
63 | DrawBar(menu.x, N*menu.line_h+menu.y, menu.w-3, menu.line_h, 0x94AECE); |
63 | DrawBar(menu.x, N*menu.item_h+menu.y, menu.w-3, menu.item_h, 0x94AECE); |
64 | else |
64 | else |
65 | { |
65 | { |
66 | DrawBar(menu.x, N*menu.line_h+menu.y, menu.w-3, menu.line_h, col_bg); |
66 | DrawBar(menu.x, N*menu.item_h+menu.y, menu.w-3, menu.item_h, col_bg); |
67 | WriteText(19,N*menu.line_h+9,0x80,0xf2f2f2,ITEMS_LIST[N]); |
67 | WriteText(19,N*menu.item_h+9,0x80,0xf2f2f2,ITEMS_LIST[N]); |
68 | } |
68 | } |
69 | WriteText(18,N*menu.line_h+8,0x80,0x000000,ITEMS_LIST[N]); |
69 | WriteText(18,N*menu.item_h+8,0x80,0x000000,ITEMS_LIST[N]); |
70 | } |
70 | } |
Line 71... | Line 71... | ||
71 | } |
71 | } |
72 | 72 | ||
73 | void ItemClick() |
73 | void ItemClick() |
74 | { |
74 | { |
75 | action_buf = VIEW_SOURCE + menu.current; |
75 | action_buf = VIEW_SOURCE + menu.cur_y; |
76 | ExitProcess(); |
76 | ExitProcess(); |