Rev 5633 | Rev 5674 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5633 | Rev 5634 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | } |
109 | } |
Line 110... | Line 110... | ||
110 | 110 | ||
111 | 111 | ||
112 | void DrawSystemDiscs() |
112 | void DrawSystemDiscs() |
113 | { |
113 | { |
Line 114... | Line 114... | ||
114 | char dev_name[15], disc_name[100]; |
114 | char dev_name[15], disc_name[100], i, dev_icon, is_active; |
115 | int i, dev_icon, pos_y; |
115 | int pos_y; |
116 | 116 | ||
117 | for (i=disc_num; i<30; i++) DeleteButton(100+i); |
117 | for (i=disc_num; i<30; i++) DeleteButton(100+i); |
118 | for (i=0;i |
118 | for (i=0;i |
- | 119 | { |
|
119 | { |
120 | pos_y = i*16+74; |
120 | pos_y = i*16+74; |
121 | DrawBar(17,pos_y,6,17,0xFFFFFF); |
121 | DrawBar(17,pos_y,160,17,0xFFFFFF); |
122 | DrawBar(17+6+18,pos_y,160-6-18,17,0xFFFFFF); |
122 | DefineButton(17,pos_y,159,16,100+i+BT_HIDE,0xFFFFFF); |
123 | DefineButton(17,pos_y,159,16,100+i+BT_HIDE,0xFFFFFF); |
123 | strcpy(#dev_name, #disk_list[i].Item); |
124 | strcpy(#dev_name, #disk_list[i].Item); |
Line 159... | Line 160... | ||
159 | break; |
160 | break; |
160 | default: |
161 | default: |
161 | dev_icon=3; //ïî-óìîë÷àíèþ óñòðîéñòâî âûãëÿäèò êàê æåñòÿê íî ýòî íåïðàâèëüíî |
162 | dev_icon=3; //ïî-óìîë÷àíèþ óñòðîéñòâî âûãëÿäèò êàê æåñòÿê íî ýòî íåïðàâèëüíî |
162 | strcpy(#disc_name, T_UNC); |
163 | strcpy(#disc_name, T_UNC); |
163 | } |
164 | } |
- | 165 | if (strstr(#path, #dev_name)) is_active=true; else is_active=false; |
|
164 | if (show_dev_name) |
166 | if (show_dev_name) |
165 | { |
167 | { |
166 | strcat(#disc_name, #dev_name); |
168 | strcat(#disc_name, #dev_name); |
167 | if (strstr(#path, #dev_name)) WriteText(45+1,pos_y+5,0x80,0x555555,#disc_name); |
169 | if (is_active) WriteText(46+1,pos_y+5,0x80,0x555555,#disc_name); |
168 | WriteText(45,pos_y+5,0x80,0,#disc_name); |
170 | WriteText(46,pos_y+5,0x80,0,#disc_name); |
169 | } |
171 | } |
170 | else |
172 | else |
171 | { |
173 | { |
172 | if (strstr(#path, #dev_name)) WriteText(45+1,pos_y+5,0x80,0x555555,#dev_name); |
174 | if (is_active) WriteText(46+1,pos_y+5,0x80,0x555555,#dev_name); |
173 | WriteText(45,pos_y+5,0x80,0,#dev_name); |
175 | WriteText(46,pos_y+5,0x80,0,#dev_name); |
174 | } |
176 | } |
175 | _PutImage(23,pos_y+2, 14,13, dev_icon*14*13*3+#devices); |
177 | _PutImage(23,pos_y, 18,17, is_active*6+dev_icon*17*18*3+#devices); |
176 | } |
178 | } |
177 | } |
179 | } |
Line 178... | Line 180... | ||
178 | 180 | ||
179 | void ActionsDraw() |
181 | void ActionsDraw() |