comparison src/redisplay.h @ 4207:62d532188a28

[xemacs-hg @ 2007-10-03 10:06:39 by didierv] Fix some other DEFAULT_INDEX == 0 assumptions
author didierv
date Wed, 03 Oct 2007 10:06:42 +0000
parents 26dccfc8fa60
children 6540302eedf5
comparison
equal deleted inserted replaced
4206:a3e638b941b0 4207:62d532188a28
326 326
327 face_index left_margin_findex; 327 face_index left_margin_findex;
328 face_index right_margin_findex; 328 face_index right_margin_findex;
329 face_index default_findex; 329 face_index default_findex;
330 }; 330 };
331
332 #define DISPLAY_LINE_INIT(dl) \
333 do \
334 { \
335 xzero (dl); \
336 dl.default_findex = DEFAULT_INDEX; \
337 } \
338 while (0)
331 339
332 #define DISPLAY_LINE_HEIGHT(dl) \ 340 #define DISPLAY_LINE_HEIGHT(dl) \
333 (dl->ascent + dl->descent - (dl->clip + dl->top_clip)) 341 (dl->ascent + dl->descent - (dl->clip + dl->top_clip))
334 #define DISPLAY_LINE_YPOS(dl) \ 342 #define DISPLAY_LINE_YPOS(dl) \
335 (dl->ypos - (dl->ascent - dl->top_clip)) 343 (dl->ypos - (dl->ascent - dl->top_clip))