Mercurial > emacs
changeset 91022:7e1dd3878c0b
(struct glyph_row): New member clip.
(struct glyph_string): Delete members clip_x, clip_y, clip_width,
clip_height, new member clip, and num_clips.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 13 Sep 2007 10:46:21 +0000 |
parents | 5cf07e247a7b |
children | cb5edf67e2f2 |
files | src/dispextern.h |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispextern.h Fri Sep 07 02:29:59 2007 +0000 +++ b/src/dispextern.h Thu Sep 13 10:46:21 2007 +0000 @@ -852,6 +852,10 @@ /* Continuation lines width at the start of the row. */ int continuation_lines_width; + + /* Non-NULL means the current clipping area. This is temporarily + set while exposing a region. Coordinates are frame-relative. */ + XRectangle *clip; }; @@ -1220,10 +1224,11 @@ *clip_tail, not including their overhangs. */ struct glyph_string *clip_head, *clip_tail; -#ifdef USE_FONT_BACKEND - /* The current clipping area. */ - int clip_x, clip_y, clip_width, clip_height; -#endif /* USE_FONT_BACKEND */ + /* The current clipping areas. */ + NativeRectangle clip[2]; + + /* Number of clipping areas. */ + int num_clips; struct glyph_string *next, *prev; };