diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-28 15:00:03 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-08-28 15:00:03 +0400 |
commit | c3c4768d2becd1f84c598e1463d089c224e83ea2 (patch) | |
tree | cc32475a4cf3f88f9740faa3a292d0905a18f8c7 /src/dispnew.c | |
parent | c65a2df9e3629bfda99e0f7dcb736097e098a7be (diff) |
Prefer enum glyph_row_area to int where appropriate.
* dispextern.h (enum glyph_row_area): Add ANY_AREA member.
Fix comment.
(window_box, window_box_width, window_box_left, window_box_left_offset)
(window_box_right, window_box_right_offset): Adjust prototypes.
* xdisp.c (window_box, window_box_width, window_box_left)
(window_box_left_offset, window_box_right, window_box_right_offset):
Use enum glyph_row_area. Adjust users and tweak comment where needed.
(window_box_edges): Likewise. Lost 2nd arg since it is always ANY_AREA.
* nsterm.m (ns_clip_to_row):
* w32term.c (w32_clip_to_row):
* xterm.c (x_clip_to_row): Likewise.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 349689e57f..f2298ffabe 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -413,7 +413,7 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y Get W's size. */ if (w) { - window_box (w, -1, 0, 0, &window_width, &window_height); + window_box (w, ANY_AREA, 0, 0, &window_width, &window_height); header_line_p = WINDOW_WANTS_HEADER_LINE_P (w); header_line_changed_p = header_line_p != matrix->header_line_p; |