Mercurial > hg > xemacs-beta
comparison src/console-stream.c @ 5628:81fee4aee9b6
text_width methods interface cleanup.
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2011-12-28 Didier Verna <didier@xemacs.org>
* console-impl.h (struct console_methods): Have the text_width
methods expect a frame instead of a window pointer.
* console-stream.c (stream_text_width):
* redisplay-msw.c (mswindows_text_width):
* redisplay-tty.c (tty_text_width):
* redisplay-xlike-inc.c (XLIKE_text_width): Update accordingly.
* redisplay-msw.c (mswindows_output_string):
* redisplay-xlike-inc.c (XLIKE_output_string):
* redisplay.c (redisplay_window_text_width_ichar_string):
* redisplay.c (redisplay_text_width_string): Update the callers.
This also fixes an uncertainty about always getting a window from
a domain.
author | Didier Verna <didier@xemacs.org> |
---|---|
date | Wed, 28 Dec 2011 11:21:38 +0100 |
parents | f87be7ddd60d |
children |
comparison
equal
deleted
inserted
replaced
5627:37fb945697f5 | 5628:81fee4aee9b6 |
---|---|
196 f->visible = 0; /* so redisplay doesn't try to do anything */ | 196 f->visible = 0; /* so redisplay doesn't try to do anything */ |
197 } | 197 } |
198 | 198 |
199 | 199 |
200 static int | 200 static int |
201 stream_text_width (struct window *UNUSED (w), | 201 stream_text_width (struct frame *UNUSED (f), |
202 struct face_cachel *UNUSED (cachel), | 202 struct face_cachel *UNUSED (cachel), |
203 const Ichar *UNUSED (str), Charcount len) | 203 const Ichar *UNUSED (str), Charcount len) |
204 { | 204 { |
205 return len; | 205 return len; |
206 } | 206 } |