… | |
… | |
549 | void |
549 | void |
550 | rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h) |
550 | rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h) |
551 | { |
551 | { |
552 | int shadow; |
552 | int shadow; |
553 | |
553 | |
554 | shadow = (w == 0 || h == 0) ? 1 : MENU_SHADOW; |
554 | shadow = (w == 0 || h == 0) ? 1 : 2; |
555 | w += x - 1; |
555 | w += x - 1; |
556 | h += y - 1; |
556 | h += y - 1; |
557 | for (; shadow-- > 0; x++, y++, w--, h--) |
557 | for (; shadow-- > 0; x++, y++, w--, h--) |
558 | { |
558 | { |
559 | XDrawLine (display, win, topShadow, x, y, w, y); |
559 | XDrawLine (display, win, topShadow, x, y, w, y); |