comparison src/redisplay-x.c @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 341dac730539
children 6240c7796c7a
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
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 */
2258 #ifdef HAVE_SELECT 2255 #ifdef HAVE_SELECT
2259 { 2256 {
2260 int usecs = 100000; 2257 int usecs = 100000;
2261 struct timeval tv; 2258 struct timeval tv;
2262 tv.tv_sec = usecs / 1000000L; 2259 tv.tv_sec = usecs / 1000000L;
2263 tv.tv_usec = usecs % 1000000L; 2260 tv.tv_usec = usecs % 1000000L;
2264 /* I'm sure someone is going to complain about this... */ 2261 /* I'm sure someone is going to complain about this... */
2265 select (0, 0, 0, 0, &tv); 2262 select (0, 0, 0, 0, &tv);
2266 } 2263 }
2267 #else 2264 #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,