Revision 253
commited some stuff
proj_func.c | ||
---|---|---|
212 | 212 |
ret->t0 == NULL || ret->t1 == NULL || ret->t2 == NULL || |
213 | 213 |
ret->frame == NULL) return NULL; |
214 | 214 |
// VISUAL |
215 |
rectangle_set_fill_color(ret->r0, BLACK); |
|
215 |
rectangle_set_fill_color(ret->r0, GRAPH_BLACK);
|
|
216 | 216 |
rectangle_set_outline_width(ret->r0, 2); |
217 |
rectangle_set_outline_color(ret->r0, WHITE); |
|
218 |
rectangle_set_fill_color(ret->r1, BLACK); |
|
217 |
rectangle_set_outline_color(ret->r0, GRAPH_WHITE);
|
|
218 |
rectangle_set_fill_color(ret->r1, GRAPH_BLACK);
|
|
219 | 219 |
rectangle_set_outline_width(ret->r1, 2); |
220 |
rectangle_set_outline_color(ret->r1, WHITE); |
|
221 |
rectangle_set_fill_color(ret->r2, BLACK); |
|
220 |
rectangle_set_outline_color(ret->r1, GRAPH_WHITE);
|
|
221 |
rectangle_set_fill_color(ret->r2, GRAPH_BLACK);
|
|
222 | 222 |
rectangle_set_outline_width(ret->r2, 2); |
223 |
rectangle_set_outline_color(ret->r2, WHITE); |
|
223 |
rectangle_set_outline_color(ret->r2, GRAPH_WHITE);
|
|
224 | 224 |
text_set_valign(ret->t0, text_valign_center); |
225 | 225 |
text_set_halign(ret->t0, text_halign_center); |
226 | 226 |
text_set_color(ret->t0, TEXT_COLOR); |
... | ... | |
230 | 230 |
text_set_valign(ret->t2, text_valign_center); |
231 | 231 |
text_set_halign(ret->t2, text_halign_center); |
232 | 232 |
text_set_color(ret->t2, TEXT_COLOR); |
233 |
rectangle_set_fill_color(ret->frame, BLACK); |
|
233 |
rectangle_set_fill_color(ret->frame, GRAPH_BLACK);
|
|
234 | 234 |
rectangle_set_outline_width(ret->frame, 6); |
235 |
rectangle_set_outline_color(ret->frame, WHITE); |
|
235 |
rectangle_set_outline_color(ret->frame, GRAPH_WHITE);
|
|
236 | 236 |
// POSITIONS |
237 | 237 |
rectangle_set_pos(ret->r0, |
238 | 238 |
graph_get_XRes()/2 - rectangle_get_w(ret->r0)/2, |
... | ... | |
290 | 290 |
rectangle_draw(menu->r0); |
291 | 291 |
rectangle_draw(menu->r1); |
292 | 292 |
rectangle_draw(menu->r2); |
293 |
rectangle_set_fill_color(menu->r0, BLACK); |
|
293 |
rectangle_set_fill_color(menu->r0, GRAPH_BLACK);
|
|
294 | 294 |
break; |
295 | 295 |
case TEST: |
296 | 296 |
rectangle_set_fill_color(menu->r1, HIGHLIGHT_COLOR); |
297 | 297 |
rectangle_draw(menu->r0); |
298 | 298 |
rectangle_draw(menu->r1); |
299 | 299 |
rectangle_draw(menu->r2); |
300 |
rectangle_set_fill_color(menu->r1, BLACK); |
|
300 |
rectangle_set_fill_color(menu->r1, GRAPH_BLACK);
|
|
301 | 301 |
break; |
302 | 302 |
case EXIT: |
303 | 303 |
rectangle_set_fill_color(menu->r2, HIGHLIGHT_COLOR); |
304 | 304 |
rectangle_draw(menu->r0); |
305 | 305 |
rectangle_draw(menu->r1); |
306 | 306 |
rectangle_draw(menu->r2); |
307 |
rectangle_set_fill_color(menu->r2, BLACK); |
|
307 |
rectangle_set_fill_color(menu->r2, GRAPH_BLACK);
|
|
308 | 308 |
break; |
309 | 309 |
default: |
310 | 310 |
rectangle_draw(menu->r0); |
Also available in: Unified diff