X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fredisplay-x.c;h=c1b7fcac0734c8d35288d7eb4c9595faeb83d05e;hb=2b7371e841478fd7b9bc7e4d9a515e0c26b9ed9a;hp=afccf6664d518f8afc8bde6f7a747b2b84bc4de2;hpb=76759ab036458c54499a454399e19602b8ae6ce3;p=chise%2Fxemacs-chise.git.1 diff --git a/src/redisplay-x.c b/src/redisplay-x.c index afccf66..c1b7fca 100644 --- a/src/redisplay-x.c +++ b/src/redisplay-x.c @@ -165,9 +165,9 @@ separate_textual_runs (unsigned char *text_storage, #ifdef MULE { Lisp_Object ccl_prog = XCHARSET_CCL_PROGRAM (charset); - need_ccl_conversion = !NILP (ccl_prog); - if (need_ccl_conversion) - setup_ccl_program (&char_converter, ccl_prog); + if ((!NILP (ccl_prog)) + && (setup_ccl_program (&char_converter, ccl_prog) >= 0)) + need_ccl_conversion = 1; } #endif } @@ -458,12 +458,12 @@ x_output_display_block (struct window *w, struct display_line *dl, int block, cursor_start, cursor_width, cursor_height, 0); break; - + case IMAGE_WIDGET: if (EQ (XIMAGE_INSTANCE_WIDGET_TYPE (instance), Qlayout)) { - redisplay_output_layout (w, instance, &dbox, &dga, findex, + redisplay_output_layout (window, instance, &dbox, &dga, findex, cursor_start, cursor_width, cursor_height); break; @@ -473,17 +473,17 @@ x_output_display_block (struct window *w, struct display_line *dl, int block, cursor_start, cursor_width, cursor_height); break; - + case IMAGE_NOTHING: /* nothing is as nothing does */ break; - + case IMAGE_TEXT: case IMAGE_POINTER: default: abort (); } - IMAGE_INSTANCE_OPTIMIZE_OUTPUT + IMAGE_INSTANCE_OPTIMIZE_OUTPUT (XIMAGE_INSTANCE (instance)) = 0; } @@ -514,7 +514,7 @@ x_output_display_block (struct window *w, struct display_line *dl, int block, /***************************************************************************** x_bevel_area - Draw a shadows for the given area in the given face. + Draw shadows for the given area in the given face. ****************************************************************************/ static void x_bevel_area (struct window *w, face_index findex, @@ -1706,6 +1706,7 @@ x_redraw_exposed_window (struct window *w, int x, int y, int width, int height) f->windows_structure_changed = 1; } + redisplay_clear_top_of_window (w); if (window_needs_vertical_divider (w)) { x_output_vertical_divider (w, 0); @@ -2000,7 +2001,7 @@ x_flash (struct device *d) w->pixel_width, flash_height); } else - /* If it is short, flash it all. */ + /* If it is short, flash it all. */ XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, w->pixel_width, w->pixel_height); @@ -2033,7 +2034,7 @@ x_flash (struct device *d) w->pixel_width, flash_height); } else - /* If it is short, flash it all. */ + /* If it is short, flash it all. */ XFillRectangle (dpy, win, gc, w->pixel_left, w->pixel_top, w->pixel_width, w->pixel_height);