Rev 7911 | Rev 7972 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7911 | Rev 7928 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | SOFTWARE CENTER v2.86 |
2 | SOFTWARE CENTER v2.86 |
3 | */ |
3 | */ |
4 | 4 | ||
5 | #define MEMSIZE 4096 * 15 |
5 | #define MEMSIZE 4096 * 15 |
6 | #include "..\lib\strings.h" |
6 | #include "..\lib\strings.h" |
7 | #include "..\lib\mem.h" |
7 | #include "..\lib\mem.h" |
8 | #include "..\lib\io.h" |
8 | #include "..\lib\io.h" |
9 | #include "..\lib\gui.h" |
9 | #include "..\lib\gui.h" |
10 | 10 | ||
11 | #include "..\lib\obj\libio.h" |
11 | #include "..\lib\obj\libio.h" |
12 | #include "..\lib\obj\libimg.h" |
12 | #include "..\lib\obj\libimg.h" |
13 | #include "..\lib\obj\libini.h" |
13 | #include "..\lib\obj\libini.h" |
14 | #include "..\lib\kfont.h" |
14 | #include "..\lib\kfont.h" |
15 | #include "..\lib\list_box.h" |
15 | #include "..\lib\list_box.h" |
16 | #include "..\lib\collection.h" |
16 | #include "..\lib\collection.h" |
17 | 17 | ||
18 | proc_info Form; |
18 | proc_info Form; |
19 | llist list; |
19 | llist list; |
20 | collection app_path_collection; |
20 | collection app_path_collection; |
21 | bool kolibrios_mounted; |
21 | bool kolibrios_mounted; |
22 | 22 | ||
23 | int window_width, |
23 | int window_width, |
24 | window_height; |
24 | window_height; |
25 | 25 | ||
26 | int list_pos, |
26 | int list_pos, |
27 | row, |
27 | row, |
28 | col, |
28 | col, |
29 | default_icon; |
29 | default_icon; |
30 | 30 | ||
31 | char window_title[128], |
31 | char window_title[128], |
32 | settings_ini_path[256]; |
32 | settings_ini_path[256]; |
33 | 33 | ||
34 | bool small_screen = false; |
34 | bool small_screen = false; |
35 | 35 | ||
36 | struct SW_COLORS |
36 | struct SW_COLORS |
37 | { |
37 | { |
38 | dword list_bg; |
38 | dword list_bg; |
39 | dword text; |
39 | dword text; |
40 | dword graph; |
40 | dword graph; |
41 | dword dark; |
41 | dword dark; |
42 | dword light; |
42 | dword light; |
43 | } swc; |
43 | } swc; |
44 | 44 | ||
45 | block selection[128]; |
45 | block selection[128]; |
46 | 46 | ||
47 | void load_ini_config(dword _ini_path) |
47 | void load_ini_config(dword _ini_path) |
48 | { |
48 | { |
49 | _ini ini; |
49 | _ini ini; |
50 | ini.path = _ini_path; |
50 | ini.path = _ini_path; |
51 | ini.section = "Config"; |
51 | ini.section = "Config"; |
52 | ini.GetString("title", #window_title, sizeof(window_title), "Software widget"); |
52 | ini.GetString("title", #window_title, sizeof(window_title), "Software widget"); |
53 | window_width = ini.GetInt("win_width", 690); |
53 | window_width = ini.GetInt("win_width", 690); |
54 | list.item_w = ini.GetInt("cell_w", 73); |
54 | list.item_w = ini.GetInt("cell_w", 73); |
55 | list.item_h = ini.GetInt("cell_h", 71); |
55 | list.item_h = ini.GetInt("cell_h", 71); |
56 | default_icon = ini.GetInt("default_icon", 2); |
56 | default_icon = ini.GetInt("default_icon", 2); |
57 | } |
57 | } |
58 | 58 | ||
59 | void main() |
59 | void main() |
60 | { |
60 | { |
61 | dword id; |
61 | dword id; |
62 | kfont.init(DEFAULT_FONT); |
62 | kfont.init(DEFAULT_FONT); |
63 | load_dll(libio, #libio_init,1); |
63 | load_dll(libio, #libio_init,1); |
64 | load_dll(libimg, #libimg_init,1); |
64 | load_dll(libimg, #libimg_init,1); |
65 | load_dll(libini, #lib_init,1); |
65 | load_dll(libini, #lib_init,1); |
66 | 66 | ||
67 | kolibrios_mounted = dir_exists("/kolibrios"); |
67 | kolibrios_mounted = dir_exists("/kolibrios"); |
68 | 68 | ||
69 | if (param) { |
69 | if (param) { |
70 | strcpy(#settings_ini_path, #param); |
70 | strcpy(#settings_ini_path, #param); |
71 | } else { |
71 | } else { |
72 | strcpy(#settings_ini_path, "/sys/settings/"); |
72 | strcpy(#settings_ini_path, "/sys/settings/"); |
73 | strcat(#settings_ini_path, I_Path + strrchr(I_Path, '/')); |
73 | strcat(#settings_ini_path, I_Path + strrchr(I_Path, '/')); |
74 | strcat(#settings_ini_path, ".ini"); |
74 | strcat(#settings_ini_path, ".ini"); |
75 | } |
75 | } |
76 | 76 | ||
77 | load_ini_config(#settings_ini_path); |
77 | load_ini_config(#settings_ini_path); |
78 | list.cur_y = -1; |
78 | list.cur_y = -1; |
79 | list.y = 32; |
79 | list.y = 32; |
80 | 80 | ||
81 | DrawList(); |
81 | DrawList(); |
82 | window_height = row+1*list.item_h + list_pos + skin_height + 15; |
82 | window_height = row+1*list.item_h + list_pos + skin_height + 15; |
83 | if (window_height>screen.height) { |
83 | if (window_height>screen.height) { |
84 | window_width = screen.width; |
84 | window_width = screen.width; |
85 | list.item_h -= 5; |
85 | list.item_h -= 5; |
86 | window_height = row+1*list.item_h + list_pos + skin_height + 15; |
86 | window_height = row+1*list.item_h + list_pos + skin_height + 15; |
87 | small_screen = true; |
87 | small_screen = true; |
88 | } |
88 | } |
89 | 89 | ||
90 | loop() switch(WaitEvent()) |
90 | loop() switch(WaitEvent()) |
91 | { |
91 | { |
92 | case evKey: |
92 | case evKey: |
93 | GetKeys(); |
93 | GetKeys(); |
94 | if (SCAN_CODE_LEFT == key_scancode) key_scancode = SCAN_CODE_UP; |
94 | if (SCAN_CODE_LEFT == key_scancode) key_scancode = SCAN_CODE_UP; |
95 | if (SCAN_CODE_RIGHT == key_scancode) key_scancode = SCAN_CODE_DOWN; |
95 | if (SCAN_CODE_RIGHT == key_scancode) key_scancode = SCAN_CODE_DOWN; |
96 | if (list.ProcessKey(key_scancode)) DrawSelection(); |
96 | if (list.ProcessKey(key_scancode)) DrawSelection(); |
97 | if (SCAN_CODE_ENTER == key_scancode) EventIconClick(list.cur_y); |
97 | if (SCAN_CODE_ENTER == key_scancode) EventIconClick(list.cur_y); |
98 | break; |
98 | break; |
99 | 99 | ||
100 | case evButton: |
100 | case evButton: |
101 | id=GetButtonID(); |
101 | id=GetButtonID(); |
102 | if (id==1) ExitProcess(); |
102 | if (id==1) ExitProcess(); |
103 | if (id>=100) EventIconClick(id-100); |
103 | if (id>=100) EventIconClick(id-100); |
104 | break; |
104 | break; |
105 | 105 | ||
106 | case evReDraw: |
106 | case evReDraw: |
107 | SetAppColors(); |
107 | SetAppColors(); |
108 | DefineAndDrawWindow(screen.width-window_width/2,screen.height-window_height/2,window_width,window_height,0x74,sc.work,"",0); |
108 | DefineAndDrawWindow(screen.width-window_width/2,screen.height-window_height/2,window_width,window_height,0x74,sc.work,"",0); |
109 | GetProcessInfo(#Form, SelfInfo); |
109 | GetProcessInfo(#Form, SelfInfo); |
110 | if (Form.status_window>2) { |
110 | if (Form.status_window>2) { |
111 | DrawTitle(#window_title); |
111 | DrawTitle(#window_title); |
112 | break; |
112 | break; |
113 | } |
113 | } |
114 | if (small_screen) { |
114 | if (small_screen) { |
115 | DrawTitle(#window_title); |
115 | DrawTitle(#window_title); |
116 | list.y = 0; |
116 | list.y = 0; |
117 | } else { |
117 | } else { |
118 | DrawTitle(NULL); |
118 | DrawTitle(NULL); |
119 | DrawTopBar(); |
119 | DrawTopBar(); |
120 | } |
120 | } |
121 | DrawList(); |
121 | DrawList(); |
122 | DrawBar(0, row +1 * list.item_h + list_pos, Form.cwidth, -row - 1 * list.item_h - list_pos + Form.cheight, swc.list_bg); |
122 | DrawBar(0, row +1 * list.item_h + list_pos, Form.cwidth, -row - 1 * list.item_h - list_pos + Form.cheight, swc.list_bg); |
123 | DrawSelection(); |
123 | DrawSelection(); |
124 | } |
124 | } |
125 | } |
125 | } |
126 | 126 | ||
127 | void SetAppColors() |
127 | void SetAppColors() |
128 | { |
128 | { |
129 | dword bg_col, old_list_bg_color; |
129 | dword bg_col, old_list_bg_color; |
130 | sc.get(); |
130 | sc.get(); |
131 | old_list_bg_color = swc.list_bg; |
131 | old_list_bg_color = swc.list_bg; |
132 | bg_col = sc.work; |
132 | bg_col = sc.work; |
133 | if (skin_is_dark()) |
133 | if (skin_is_dark()) |
134 | { |
134 | { |
135 | //dark colors |
135 | //dark colors |
136 | swc.list_bg = sc.work; |
136 | swc.list_bg = sc.work; |
137 | swc.text = sc.work_text; |
137 | swc.text = sc.work_text; |
138 | swc.dark = sc.work_dark; |
138 | swc.dark = sc.work_dark; |
139 | swc.light = sc.work_light; |
139 | swc.light = sc.work_light; |
140 | } else { |
140 | } else { |
141 | //light colors |
141 | //light colors |
142 | swc.list_bg = 0xF3F3F3; |
142 | swc.list_bg = 0xF3F3F3; |
143 | swc.text = 0x000000; |
143 | swc.text = 0x000000; |
144 | swc.dark = 0xDCDCDC; |
144 | swc.dark = 0xDCDCDC; |
145 | swc.light = 0xFCFCFC; |
145 | swc.light = 0xFCFCFC; |
146 | } |
146 | } |
- | 147 | ||
147 | 148 | if (!skin.image) LoadImages(); |
|
- | 149 | else if (swc.list_bg != old_list_bg_color) LoadImages(); |
|
- | 150 | } |
|
- | 151 | ||
148 | if (swc.list_bg != old_list_bg_color) |
152 | void LoadImages() |
149 | { |
153 | { |
150 | Libimg_LoadImage(#skin, "/sys/icons32.png"); |
154 | Libimg_LoadImage(#skin, "/sys/icons32.png"); |
151 | Libimg_FillTransparent(skin.image, skin.w, skin.h, swc.list_bg); |
155 | Libimg_FillTransparent(skin.image, skin.w, skin.h, swc.list_bg); |
152 | } |
156 | } |
153 | } |
- | |
154 | 157 | ||
155 | 158 | ||
156 | void DrawList() { |
159 | void DrawList() { |
157 | list.count = 0; |
160 | list.count = 0; |
158 | row = -1; |
161 | row = -1; |
159 | app_path_collection.drop(); |
162 | app_path_collection.drop(); |
160 | list_pos = list.y; |
163 | list_pos = list.y; |
161 | list.column_max = window_width - 10 / list.item_w; |
164 | list.column_max = window_width - 10 / list.item_w; |
162 | ini_enum_sections stdcall (#settings_ini_path, #process_sections); |
165 | ini_enum_sections stdcall (#settings_ini_path, #process_sections); |
163 | list.visible = list.count; |
166 | list.visible = list.count; |
164 | } |
167 | } |
165 | 168 | ||
166 | byte draw_icons_from_section(dword key_value, key_name, sec_name, f_name) |
169 | byte draw_icons_from_section(dword key_value, key_name, sec_name, f_name) |
167 | { |
170 | { |
168 | int icon_id = default_icon, |
171 | int icon_id = default_icon, |
169 | icon_char_pos; |
172 | icon_char_pos; |
170 | int space_pos; |
173 | int space_pos; |
171 | 174 | ||
172 | dword icon_x, icon_y, text_x, text_y; |
175 | dword icon_x, icon_y, text_x, text_y; |
173 | 176 | ||
174 | //do not show items located in /kolibrios/ if this directory not mounted |
177 | //do not show items located in /kolibrios/ if this directory not mounted |
175 | if (!strncmp(key_value, "/kolibrios/", 11)) || (!strncmp(key_value, "/k/", 3)) |
178 | if (!strncmp(key_value, "/kolibrios/", 11)) || (!strncmp(key_value, "/k/", 3)) |
176 | if (!kolibrios_mounted) return true; |
179 | if (!kolibrios_mounted) return true; |
177 | 180 | ||
178 | if (col==list.column_max) { |
181 | if (col==list.column_max) { |
179 | row++; |
182 | row++; |
180 | col=0; |
183 | col=0; |
181 | } |
184 | } |
182 | 185 | ||
183 | if (col==0) DrawBar(0, row * list.item_h + list_pos, Form.cwidth, list.item_h, swc.list_bg); |
186 | if (col==0) DrawBar(0, row * list.item_h + list_pos, Form.cwidth, list.item_h, swc.list_bg); |
184 | DefineButton(col*list.item_w+6, row*list.item_h + list_pos,list.item_w,list.item_h-3,list.count + 100 + BT_HIDE,0); |
187 | DefineButton(col*list.item_w+6, row*list.item_h + list_pos,list.item_w,list.item_h-3,list.count + 100 + BT_HIDE,0); |
185 | 188 | ||
186 | icon_char_pos = strchr(key_value, ','); |
189 | icon_char_pos = strchr(key_value, ','); |
187 | icon_x = col*list.item_w+calc(list.item_w/2)-10; |
190 | icon_x = col*list.item_w+calc(list.item_w/2)-10; |
188 | icon_y = row*list.item_h+5 + list_pos; |
191 | icon_y = row*list.item_h+5 + list_pos; |
189 | selection[list.count].x = icon_x-2; |
192 | selection[list.count].x = icon_x-2; |
190 | selection[list.count].y = icon_y-2; |
193 | selection[list.count].y = icon_y-2; |
191 | if (icon_char_pos) ESBYTE[icon_char_pos] = '\0'; //delete icon from string |
194 | if (icon_char_pos) ESBYTE[icon_char_pos] = '\0'; //delete icon from string |
192 | app_path_collection.add(key_value); |
195 | app_path_collection.add(key_value); |
193 | 196 | ||
194 | text_x = col*list.item_w+5; |
197 | text_x = col*list.item_w+5; |
195 | text_y = list.item_h - 40 / 2; |
198 | text_y = list.item_h - 40 / 2; |
196 | if (!strchr(key_name, ' ')) {//|| (kfont.getsize(key_name)+30 |
199 | if (!strchr(key_name, ' ')) {//|| (kfont.getsize(key_name)+30 |
197 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos, list.item_w,0, swc.list_bg, swc.text, 12, key_name); |
200 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos, list.item_w,0, swc.list_bg, swc.text, 12, key_name); |
198 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos+3, list.item_w, swc.text, key_name); |
201 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos+3, list.item_w, swc.text, key_name); |
199 | } else { |
202 | } else { |
200 | space_pos = strrchr(key_name, ' '); |
203 | space_pos = strrchr(key_name, ' '); |
201 | ESBYTE[key_name+space_pos-1] = '\0'; |
204 | ESBYTE[key_name+space_pos-1] = '\0'; |
202 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos - 2, list.item_w,0, swc.list_bg, swc.text, 12, key_name); |
205 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos - 2, list.item_w,0, swc.list_bg, swc.text, 12, key_name); |
203 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos + 13, list.item_w,0, swc.list_bg, swc.text, 12, key_name+space_pos); |
206 | kfont.WriteIntoWindowCenter(text_x, row*list.item_h+46 + list_pos + 13, list.item_w,0, swc.list_bg, swc.text, 12, key_name+space_pos); |
204 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos, list.item_w, swc.text, key_name); |
207 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos, list.item_w, swc.text, key_name); |
205 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos + 10, list.item_w, swc.text, key_name+space_pos); |
208 | //WriteTextCenter(text_x, row*list.item_h+46 + list_pos + 10, list.item_w, swc.text, key_name+space_pos); |
206 | } |
209 | } |
207 | if (icon_char_pos) icon_id = atoi(icon_char_pos+1); |
210 | if (icon_char_pos) icon_id = atoi(icon_char_pos+1); |
208 | img_draw stdcall(skin.image, icon_x, icon_y, 32, 32, 0, icon_id*32); |
211 | img_draw stdcall(skin.image, icon_x, icon_y, 32, 32, 0, icon_id*32); |
209 | list.count++; |
212 | list.count++; |
210 | col++; |
213 | col++; |
211 | return true; |
214 | return true; |
212 | } |
215 | } |
213 | 216 | ||
214 | 217 | ||
215 | int old_row; //to detect empty sections |
218 | int old_row; //to detect empty sections |
216 | byte process_sections(dword sec_name, f_name) |
219 | byte process_sections(dword sec_name, f_name) |
217 | { |
220 | { |
218 | int text_len; |
221 | int text_len; |
219 | if (!strcmp(sec_name, "Config")) return true; |
222 | if (!strcmp(sec_name, "Config")) return true; |
220 | 223 | ||
221 | if ((col==0) && (row==old_row)) |
224 | if ((col==0) && (row==old_row)) |
222 | { |
225 | { |
223 | list_pos -= 28; |
226 | list_pos -= 28; |
224 | } |
227 | } |
225 | else |
228 | else |
226 | { |
229 | { |
227 | row++; |
230 | row++; |
228 | } |
231 | } |
229 | col = 0; |
232 | col = 0; |
230 | old_row = row; |
233 | old_row = row; |
231 | 234 | ||
232 | if (!small_screen) { |
235 | if (!small_screen) { |
233 | DrawBar(0, row * list.item_h + list_pos, Form.cwidth , 29, swc.list_bg); |
236 | DrawBar(0, row * list.item_h + list_pos, Form.cwidth , 29, swc.list_bg); |
234 | text_len = kfont.WriteIntoWindow(10, row * list.item_h + 10 + list_pos, swc.list_bg, swc.text, 15, sec_name); |
237 | text_len = kfont.WriteIntoWindow(10, row * list.item_h + 10 + list_pos, swc.list_bg, swc.text, 15, sec_name); |
235 | DrawBar(text_len+20, row * list.item_h + list_pos + 20, Form.cwidth-text_len-20, 1, swc.dark); |
238 | DrawBar(text_len+20, row * list.item_h + list_pos + 20, Form.cwidth-text_len-20, 1, swc.dark); |
236 | DrawBar(text_len+20, row * list.item_h + list_pos + 21, Form.cwidth-text_len-20, 1, swc.light); |
239 | DrawBar(text_len+20, row * list.item_h + list_pos + 21, Form.cwidth-text_len-20, 1, swc.light); |
237 | list_pos += 29; |
240 | list_pos += 29; |
238 | } |
241 | } |
239 | ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section); |
242 | ini_enum_keys stdcall (f_name, sec_name, #draw_icons_from_section); |
240 | return true; |
243 | return true; |
241 | } |
244 | } |
242 | 245 | ||
243 | void DrawTopBar() |
246 | void DrawTopBar() |
244 | { |
247 | { |
245 | DrawBar(0,0,Form.cwidth, list.y-2, sc.work); |
248 | DrawBar(0,0,Form.cwidth, list.y-2, sc.work); |
246 | DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(sc.work, sc.work_graph, 180)); |
249 | DrawBar(0,list.y-2, Form.cwidth, 1, MixColors(sc.work, sc.work_graph, 180)); |
247 | DrawBar(0,list.y-1, Form.cwidth, 1, sc.work_graph); |
250 | DrawBar(0,list.y-1, Form.cwidth, 1, sc.work_graph); |
248 | kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, sc.work, sc.work_text, 16, #window_title); |
251 | kfont.WriteIntoWindowCenter(0,5, Form.cwidth, list.y, sc.work, sc.work_text, 16, #window_title); |
249 | } |
252 | } |
250 | 253 | ||
251 | void EventIconClick(dword appid) |
254 | void EventIconClick(dword appid) |
252 | { |
255 | { |
253 | char run_app_path[4096]=0; |
256 | char run_app_path[4096]=0; |
254 | dword app_path = app_path_collection.get(appid); |
257 | dword app_path = app_path_collection.get(appid); |
255 | dword param_pos = strchr(app_path, '|'); |
258 | dword param_pos = strchr(app_path, '|'); |
256 | if (param_pos) { |
259 | if (param_pos) { |
257 | ESBYTE[param_pos] = NULL; |
260 | ESBYTE[param_pos] = NULL; |
258 | param_pos++; |
261 | param_pos++; |
259 | } |
262 | } |
260 | 263 | ||
261 | // the next block is created to save some space in ramdisk{ |
264 | // the next block is created to save some space in ramdisk{ |
262 | // |
265 | // |
263 | // convert relative path to absolute "calc" => "/sys/calc" |
266 | // convert relative path to absolute "calc" => "/sys/calc" |
264 | // convert short kolibrios path to full "/k/calc" => "/kolibrios/calc" |
267 | // convert short kolibrios path to full "/k/calc" => "/kolibrios/calc" |
265 | // other copy => as is |
268 | // other copy => as is |
266 | if (ESBYTE[app_path]!='/') { |
269 | if (ESBYTE[app_path]!='/') { |
267 | strcpy(#run_app_path, "/sys/"); |
270 | strcpy(#run_app_path, "/sys/"); |
268 | } |
271 | } |
269 | else if (!strncmp(app_path, "/k/",3)) { |
272 | else if (!strncmp(app_path, "/k/",3)) { |
270 | strcpy(#run_app_path, "/kolibrios/"); |
273 | strcpy(#run_app_path, "/kolibrios/"); |
271 | app_path+=3; |
274 | app_path+=3; |
272 | } |
275 | } |
273 | strcat(#run_app_path, app_path); |
276 | strcat(#run_app_path, app_path); |
274 | // }end |
277 | // }end |
275 | 278 | ||
276 | if (file_exists(#run_app_path)) { |
279 | if (file_exists(#run_app_path)) { |
277 | io.run(#run_app_path, param_pos); //0 or offset |
280 | io.run(#run_app_path, param_pos); //0 or offset |
278 | if (param_pos) ESBYTE[param_pos - 1] = '|'; |
281 | if (param_pos) ESBYTE[param_pos - 1] = '|'; |
279 | } else { |
282 | } else { |
280 | notify("'Application not found' -E"); |
283 | notify("'Application not found' -E"); |
281 | } |
284 | } |
282 | } |
285 | } |
283 | 286 | ||
284 | void DrawSelection() |
287 | void DrawSelection() |
285 | { |
288 | { |
286 | int i; |
289 | int i; |
287 | dword col; |
290 | dword col; |
288 | for (i=0; i |
291 | for (i=0; i |
289 | if (i==list.cur_y) col=0x0080FF; else col=swc.list_bg; |
292 | if (i==list.cur_y) col=0x0080FF; else col=swc.list_bg; |
290 | DrawWideRectangle(selection[i].x, selection[i].y, 36, 36, 2, col); |
293 | DrawWideRectangle(selection[i].x, selection[i].y, 36, 36, 2, col); |
291 | } |
294 | } |
292 | } |
295 | } |
293 | 296 | ||
294 | 297 | ||
295 | stop:==> |
298 | stop:==> |