* Draw shadows along the right and bottom edge to give a more 3D look * to the boxes */
| 496 | * to the boxes |
| 497 | */ |
| 498 | void draw_shadow(WINDOW * win, int y, int x, int height, int width) |
| 499 | { |
| 500 | int i; |
| 501 | |
| 502 | if (has_colors()) { /* Whether terminal supports color? */ |
| 503 | wattrset(win, dlg.shadow.atr); |
| 504 | wmove(win, y + height, x + 2); |
| 505 | for (i = 0; i < width; i++) |
| 506 | waddch(win, winch(win) & A_CHARTEXT); |
| 507 | for (i = y + 1; i < y + height + 1; i++) { |
| 508 | wmove(win, i, x + width); |
| 509 | waddch(win, winch(win) & A_CHARTEXT); |
| 510 | waddch(win, winch(win) & A_CHARTEXT); |
| 511 | } |
| 512 | wnoutrefresh(win); |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | /* |
| 517 | * Return the position of the first alphabetic character in a string. |
no outgoing calls
no test coverage detected