This commit was generated by cvs2svn to compensate for changes in r4969,
[chise/xemacs-chise.git.1] / src / redisplay-tty.c
index 08899fa..9e8515d 100644 (file)
@@ -289,7 +289,7 @@ tty_output_display_block (struct window *w, struct display_line *dl, int block,
                  elt++;
                }
            }
-         /* #### RUNE_HLINE is actually a little more complicated than this
+         /* #### RUNE_HLINE is actualy a little more complicated than this
              but at the moment it is only used to draw a turned off
              modeline and this will suffice for that. */
          else if (rb->type == RUNE_BLANK || rb->type == RUNE_HLINE)
@@ -391,7 +391,6 @@ tty_output_display_block (struct window *w, struct display_line *dl, int block,
                  case IMAGE_MONO_PIXMAP:
                  case IMAGE_COLOR_PIXMAP:
                  case IMAGE_SUBWINDOW:
-                 case IMAGE_WIDGET:
                    /* just do nothing here */
                    break;
 
@@ -462,14 +461,16 @@ tty_output_vertical_divider (struct window *w, int clear)
  Clear the area in the box defined by the given parameters.
  ****************************************************************************/
 static void
-tty_clear_region (Lisp_Object window, struct device* d, struct frame * f,
-                 face_index findex, int x, int y,
-                 int width, int height, Lisp_Object fcolor, Lisp_Object bcolor, 
-                 Lisp_Object background_pixmap)
+tty_clear_region (Lisp_Object window, face_index findex, int x, int y,
+                 int width, int height)
 {
+  struct window *w = XWINDOW (window);
+  struct frame *f = XFRAME (w->frame);
   struct console *c = XCONSOLE (FRAME_CONSOLE (f));
   int line;
-  struct window* w = XWINDOW (window);
+
+  if (!width || !height)
+     return;
 
   tty_turn_on_face (w, findex);
   for (line = y; line < y + height; line++)
@@ -533,7 +534,7 @@ tty_clear_to_window_end (struct window *w, int ypos1, int ypos2)
       Lisp_Object window;
 
       XSETWINDOW (window, w);
-      redisplay_clear_region (window, DEFAULT_INDEX, x, ypos1, width, ypos2 - ypos1);
+      tty_clear_region (window, DEFAULT_INDEX, x, ypos1, width, ypos2 - ypos1);
     }
 }
 
@@ -958,7 +959,7 @@ tty_redisplay_shutdown (struct console *c)
          struct frame *f = XFRAME (frm);
 
          /* Clear the bottom line of the frame. */
-         redisplay_clear_region (FRAME_SELECTED_WINDOW (f), DEFAULT_INDEX, 0,
+         tty_clear_region (FRAME_SELECTED_WINDOW (f), DEFAULT_INDEX, 0,
                            f->height, f->width, 1);
 
          /* And then stick the cursor there. */