Rev 4077 | Rev 4081 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4077 | Rev 4078 | ||
---|---|---|---|
Line 95... | Line 95... | ||
95 | 95 | ||
96 | void MenuListRedraw() |
96 | void MenuListRedraw() |
97 | { |
97 | { |
98 | int start_y=0; |
98 | int start_y=0; |
99 | int index; |
- | |
100 | int texty = menu.line_h/2-4; |
99 | int index; |
101 | for (index=0; file_captions[index*3]!=0; index++) |
100 | for (index=0; file_captions[index*3]!=0; index++) |
102 | { |
101 | { |
103 | if ((itdir) && (file_captions[index*3+2]>=200)) continue; |
102 | if ((itdir) && (file_captions[index*3+2]>=200)) continue; |
104 | DrawBar(1,start_y+2,1,menu.line_h,0xFFFfff); |
103 | DrawBar(1,start_y+2,1,menu.line_h,0xFFFfff); |
Line 108... | Line 107... | ||
108 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,0xFFFfff); |
107 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,0xFFFfff); |
109 | } |
108 | } |
110 | else |
109 | else |
111 | { |
110 | { |
112 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,sc.work); |
111 | DrawBar(2,start_y+2,menu.w-1,menu.line_h,sc.work); |
113 | WriteText(8,start_y+texty+3,0x80,0xf2f2f2,file_captions[index*3]); |
112 | WriteText(8,start_y+menu.text_y+3,0x80,0xf2f2f2,file_captions[index*3]); |
114 | } |
113 | } |
115 | WriteText(7,start_y+texty+2,0x80,sc.work_text,file_captions[index*3]); |
114 | WriteText(7,start_y+menu.text_y+2,0x80,sc.work_text,file_captions[index*3]); |
116 | WriteText(-strlen(file_captions[index*3+1])*6-6+menu.w,start_y+texty+2,0x80,0x888888,file_captions[index*3+1]); |
115 | WriteText(-strlen(file_captions[index*3+1])*6-6+menu.w,start_y+menu.text_y+2,0x80,0x888888,file_captions[index*3+1]); |
117 | start_y+=menu.line_h; |
116 | start_y+=menu.line_h; |
118 | } |
117 | } |
119 | } |
118 | } |
120 | 119 |