Changeset 4050 for neercs/trunk/src/wm.c
- Timestamp:
- Nov 27, 2009, 12:02:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/wm.c
r4049 r4050 356 356 int p2x, int p2y, 357 357 int p3x, int p3y, 358 int p4x, int p4y, caca_canvas_t * tex, int color) 358 int p4x, int p4y, caca_canvas_t * tex, 359 int color, int borders) 359 360 { 360 361 if (get_direction(p1x, p1y, p2x, p2y, p3x, p3y) >= 0) … … 393 394 #endif 394 395 caca_set_color_ansi(cv, color, CACA_BLACK); 395 caca_draw_thin_line(cv, p1x, p1y, p2x, p2y); 396 caca_draw_thin_line(cv, p2x, p2y, p3x, p3y); 397 caca_draw_thin_line(cv, p3x, p3y, p4x, p4y); 398 caca_draw_thin_line(cv, p4x, p4y, p1x, p1y); 396 if (borders) 397 { 398 caca_draw_thin_line(cv, p1x, p1y, p2x, p2y); 399 caca_draw_thin_line(cv, p2x, p2y, p3x, p3y); 400 caca_draw_thin_line(cv, p3x, p3y, p4x, p4y); 401 caca_draw_thin_line(cv, p4x, p4y, p1x, p1y); 402 } 399 403 } 400 404 } … … 487 491 cube_projected[2][0], cube_projected[2][1], 488 492 cube_projected[3][0], cube_projected[3][1], 489 first, CACA_LIGHTGREEN );493 first, CACA_LIGHTGREEN, screen_list->border_size); 490 494 491 495 … … 497 501 cube_projected[6][0], cube_projected[6][1], 498 502 cube_projected[7][0], cube_projected[7][1], 499 second, CACA_RED );503 second, CACA_RED, screen_list->border_size); 500 504 } 501 505 else … … 506 510 cube_projected[10][0], cube_projected[10][1], 507 511 cube_projected[11][0], cube_projected[11][1], 508 second, CACA_RED );512 second, CACA_RED, screen_list->border_size); 509 513 } 510 514
Note: See TracChangeset
for help on using the changeset viewer.