Mercurial > hg > xemacs-beta
comparison src/redisplay-x.c @ 197:acd284d43ca1 r20-3b25
Import from CVS: tag r20-3b25
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:00:02 +0200 |
parents | 3d6bfa290dbd |
children | 41ff10fd062f |
comparison
equal
deleted
inserted
replaced
196:58e0786448ca | 197:acd284d43ca1 |
---|---|
2223 gc = gc_cache_lookup (DEVICE_X_GC_CACHE (XDEVICE (f->device)), &gcv, | 2223 gc = gc_cache_lookup (DEVICE_X_GC_CACHE (XDEVICE (f->device)), &gcv, |
2224 (GCForeground | GCFunction | GCGraphicsExposures)); | 2224 (GCForeground | GCFunction | GCGraphicsExposures)); |
2225 XFillRectangle (dpy, w, gc, 0, 0, width, height); | 2225 XFillRectangle (dpy, w, gc, 0, 0, width, height); |
2226 XSync (dpy, False); | 2226 XSync (dpy, False); |
2227 | 2227 |
2228 #ifdef HAVE_POLL | 2228 #ifdef HAVE_SELECT |
2229 poll (0, 0, 100); | |
2230 #else /* !HAVE_POLL */ | |
2231 { | 2229 { |
2232 int usecs = 100000; | 2230 int usecs = 100000; |
2233 struct timeval tv; | 2231 struct timeval tv; |
2234 tv.tv_sec = usecs / 1000000L; | 2232 tv.tv_sec = usecs / 1000000L; |
2235 tv.tv_usec = usecs % 1000000L; | 2233 tv.tv_usec = usecs % 1000000L; |
2236 /* I'm sure someone is going to complain about this... */ | 2234 /* I'm sure someone is going to complain about this... */ |
2237 select (0, 0, 0, 0, &tv); | 2235 select (0, 0, 0, 0, &tv); |
2238 } | 2236 } |
2239 #endif /* !HAVE_POLL */ | 2237 #else |
2238 #ifdef HAVE_POLL | |
2239 poll (0, 0, 100); | |
2240 #else /* !HAVE_POLL */ | |
2241 bite me | |
2242 #endif /* HAVE_POLL */ | |
2243 #endif /* HAVE_SELECT */ | |
2240 | 2244 |
2241 XFillRectangle (dpy, w, gc, 0, 0, width, height); | 2245 XFillRectangle (dpy, w, gc, 0, 0, width, height); |
2242 XSync (dpy, False); | 2246 XSync (dpy, False); |
2243 | 2247 |
2244 return 1; | 2248 return 1; |