diff src/redisplay-xlike-inc.c @ 5515:f87be7ddd60d

Simplify clear_region interface. -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2011-05-29 Didier Verna <didier@xemacs.org> * console-impl.h (struct console_methods): Remove device parameter from the clear_region method prototype. * redisplay-output.c (redisplay_clear_region): Remove the device parameter from the clear_region method call. * console-stream.c (stream_clear_region): * redisplay-msw.c (mswindows_clear_region): * redisplay-tty.c (tty_clear_region): Update accordingly. * redisplay-xlike-inc.c (XLIKE_clear_region): Ditto. Get the device from the frame structure instead.
author Didier Verna <didier@lrde.epita.fr>
date Sun, 29 May 2011 20:56:07 +0200
parents 308d34e9f07d
children 580ef98f2beb
line wrap: on
line diff
--- a/src/redisplay-xlike-inc.c	Sun May 29 18:17:09 2011 +0100
+++ b/src/redisplay-xlike-inc.c	Sun May 29 20:56:07 2011 +0200
@@ -2021,14 +2021,14 @@
  given face.
  ****************************************************************************/
 static void
-XLIKE_clear_region (Lisp_Object UNUSED (locale), struct device* d,
-		    struct frame* f, face_index UNUSED (findex), int x, int y,
-		    int width, int height,
+XLIKE_clear_region (Lisp_Object UNUSED (locale), struct frame* f,
+		    face_index UNUSED (findex),
+		    int x, int y, int width, int height,
 		    Lisp_Object fcolor, Lisp_Object bcolor,
 		    Lisp_Object background_pixmap,
 		    Lisp_Object background_placement)
 {
-  XLIKE_DISPLAY dpy = GET_XLIKE_DISPLAY (d);
+  XLIKE_DISPLAY dpy =  GET_XLIKE_DISPLAY (XDEVICE (f->device));
   XLIKE_WINDOW x_win = GET_XLIKE_WINDOW (f);
   XLIKE_GC gc = NULL;