Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5514:9d519ab9fd68 | 5515:f87be7ddd60d |
---|---|
2019 | 2019 |
2020 Clear the area in the box defined by the given parameters using the | 2020 Clear the area in the box defined by the given parameters using the |
2021 given face. | 2021 given face. |
2022 ****************************************************************************/ | 2022 ****************************************************************************/ |
2023 static void | 2023 static void |
2024 XLIKE_clear_region (Lisp_Object UNUSED (locale), struct device* d, | 2024 XLIKE_clear_region (Lisp_Object UNUSED (locale), struct frame* f, |
2025 struct frame* f, face_index UNUSED (findex), int x, int y, | 2025 face_index UNUSED (findex), |
2026 int width, int height, | 2026 int x, int y, int width, int height, |
2027 Lisp_Object fcolor, Lisp_Object bcolor, | 2027 Lisp_Object fcolor, Lisp_Object bcolor, |
2028 Lisp_Object background_pixmap, | 2028 Lisp_Object background_pixmap, |
2029 Lisp_Object background_placement) | 2029 Lisp_Object background_placement) |
2030 { | 2030 { |
2031 XLIKE_DISPLAY dpy = GET_XLIKE_DISPLAY (d); | 2031 XLIKE_DISPLAY dpy = GET_XLIKE_DISPLAY (XDEVICE (f->device)); |
2032 XLIKE_WINDOW x_win = GET_XLIKE_WINDOW (f); | 2032 XLIKE_WINDOW x_win = GET_XLIKE_WINDOW (f); |
2033 XLIKE_GC gc = NULL; | 2033 XLIKE_GC gc = NULL; |
2034 | 2034 |
2035 if (!UNBOUNDP (background_pixmap)) | 2035 if (!UNBOUNDP (background_pixmap)) |
2036 { | 2036 { |