Mercurial > hg > xemacs-beta
comparison src/redisplay.c @ 430:a5df635868b2 r21-2-23
Import from CVS: tag r21-2-23
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:29:08 +0200 |
parents | 3ecd8885ac67 |
children | 9d177e8d4150 |
comparison
equal
deleted
inserted
replaced
429:8305706cbb93 | 430:a5df635868b2 |
---|---|
6449 if (f->icon_changed || f->windows_changed) | 6449 if (f->icon_changed || f->windows_changed) |
6450 update_frame_icon (f); | 6450 update_frame_icon (f); |
6451 | 6451 |
6452 if (FRAME_REPAINT_P (f)) | 6452 if (FRAME_REPAINT_P (f)) |
6453 { | 6453 { |
6454 if (CLASS_REDISPLAY_FLAGS_CHANGEDP(f) | 6454 if (CLASS_REDISPLAY_FLAGS_CHANGEDP (f)) |
6455 || f->size_changed) | |
6456 { | 6455 { |
6457 preempted = redisplay_frame (f, 0); | 6456 preempted = redisplay_frame (f, 0); |
6458 } | 6457 } |
6459 | 6458 |
6460 if (preempted) | 6459 if (preempted) |
6501 | 6500 |
6502 if (asynch_device_change_pending) | 6501 if (asynch_device_change_pending) |
6503 handle_asynch_device_change (); | 6502 handle_asynch_device_change (); |
6504 | 6503 |
6505 if (!GLOBAL_REDISPLAY_FLAGS_CHANGEDP && | 6504 if (!GLOBAL_REDISPLAY_FLAGS_CHANGEDP && |
6506 !size_changed && !disable_preemption && preemption_count < max_preempts) | 6505 !disable_preemption && preemption_count < max_preempts) |
6507 goto done; | 6506 goto done; |
6508 | 6507 |
6509 DEVICE_LOOP_NO_BREAK (devcons, concons) | 6508 DEVICE_LOOP_NO_BREAK (devcons, concons) |
6510 { | 6509 { |
6511 struct device *d = XDEVICE (XCAR (devcons)); | 6510 struct device *d = XDEVICE (XCAR (devcons)); |
6512 int preempted; | 6511 int preempted; |
6513 | 6512 |
6514 if (CLASS_REDISPLAY_FLAGS_CHANGEDP (d) | 6513 if (CLASS_REDISPLAY_FLAGS_CHANGEDP (d)) |
6515 || d->size_changed) | |
6516 { | 6514 { |
6517 preempted = redisplay_device (d); | 6515 preempted = redisplay_device (d); |
6518 | 6516 |
6519 if (preempted) | 6517 if (preempted) |
6520 { | 6518 { |
7409 | 7407 |
7410 int | 7408 int |
7411 point_would_be_visible (struct window *w, Bufpos startp, Bufpos point) | 7409 point_would_be_visible (struct window *w, Bufpos startp, Bufpos point) |
7412 { | 7410 { |
7413 struct buffer *b = XBUFFER (w->buffer); | 7411 struct buffer *b = XBUFFER (w->buffer); |
7414 int pixpos = 0; | 7412 int pixpos = -WINDOW_TEXT_TOP_CLIP(w); |
7415 int bottom = WINDOW_TEXT_HEIGHT (w); | 7413 int bottom = WINDOW_TEXT_HEIGHT (w); |
7416 int start_elt; | 7414 int start_elt; |
7417 | 7415 |
7418 /* If point is before the intended start it obviously can't be visible. */ | 7416 /* If point is before the intended start it obviously can't be visible. */ |
7419 if (point < startp) | 7417 if (point < startp) |