… | |
… | |
553 | void |
553 | void |
554 | rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h) |
554 | rxvt_Draw_Shadow (Display *display, Window win, GC topShadow, GC botShadow, int x, int y, int w, int h) |
555 | { |
555 | { |
556 | int shadow; |
556 | int shadow; |
557 | |
557 | |
558 | shadow = (w == 0 || h == 0) ? 1 : SHADOW; |
558 | shadow = (w == 0 || h == 0) ? 1 : MENU_SHADOW; |
559 | w += x - 1; |
559 | w += x - 1; |
560 | h += y - 1; |
560 | h += y - 1; |
561 | for (; shadow-- > 0; x++, y++, w--, h--) |
561 | for (; shadow-- > 0; x++, y++, w--, h--) |
562 | { |
562 | { |
563 | XDrawLine (display, win, topShadow, x, y, w, y); |
563 | XDrawLine (display, win, topShadow, x, y, w, y); |
… | |
… | |
609 | |
609 | |
610 | } |
610 | } |
611 | } |
611 | } |
612 | #endif |
612 | #endif |
613 | |
613 | |
614 | // should nto be use din interactive programs, for obvious reasons |
614 | // should not be used in interactive programs, for obvious reasons |
615 | void rxvt_usleep (int usecs) |
615 | void rxvt_usleep (int usecs) |
616 | { |
616 | { |
617 | #if HAVE_NANOSLEEP |
617 | #if HAVE_NANOSLEEP |
618 | struct timespec ts; |
618 | struct timespec ts; |
619 | |
619 | |