Mercurial > hg > xemacs-beta
comparison src/redisplay-x.c @ 314:341dac730539 r21-0b55
Import from CVS: tag r21-0b55
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:44:22 +0200 |
parents | 558f606b08ae |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
313:2905de29931f | 314:341dac730539 |
---|---|
2250 (GCForeground | GCFunction | GCGraphicsExposures)); | 2250 (GCForeground | GCFunction | GCGraphicsExposures)); |
2251 XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, | 2251 XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, |
2252 w->pixel_width, w->pixel_height); | 2252 w->pixel_width, w->pixel_height); |
2253 XSync (dpy, False); | 2253 XSync (dpy, False); |
2254 | 2254 |
2255 #ifdef HAVE_POLL | |
2256 poll (0, 0, 100); | |
2257 #else /* !HAVE_POLL */ | |
2255 #ifdef HAVE_SELECT | 2258 #ifdef HAVE_SELECT |
2256 { | 2259 { |
2257 int usecs = 100000; | 2260 int usecs = 100000; |
2258 struct timeval tv; | 2261 struct timeval tv; |
2259 tv.tv_sec = usecs / 1000000L; | 2262 tv.tv_sec = usecs / 1000000L; |
2260 tv.tv_usec = usecs % 1000000L; | 2263 tv.tv_usec = usecs % 1000000L; |
2261 /* I'm sure someone is going to complain about this... */ | 2264 /* I'm sure someone is going to complain about this... */ |
2262 select (0, 0, 0, 0, &tv); | 2265 select (0, 0, 0, 0, &tv); |
2263 } | 2266 } |
2264 #else | 2267 #else |
2265 #ifdef HAVE_POLL | |
2266 poll (0, 0, 100); | |
2267 #else /* !HAVE_POLL */ | |
2268 bite me | 2268 bite me |
2269 #endif /* HAVE_POLL */ | 2269 #endif /* HAVE_POLL */ |
2270 #endif /* HAVE_SELECT */ | 2270 #endif /* HAVE_SELECT */ |
2271 | 2271 |
2272 XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, | 2272 XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, |