diff options
| author | Juanma Barranquero | 2003-03-16 22:05:00 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-03-16 22:05:00 +0000 |
| commit | 2a6d0874d3131ef127520c06fd38facb036e1270 (patch) | |
| tree | a03b0f7f07d97326ca180321bb8b2a98a2f94356 /src | |
| parent | fad4984414ec4488c857f6d2dc5a496c8154fe98 (diff) | |
| download | emacs-2a6d0874d3131ef127520c06fd38facb036e1270.tar.gz emacs-2a6d0874d3131ef127520c06fd38facb036e1270.zip | |
(x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ac7b00c9e20..ab09ba9f34e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,9 +1,13 @@ | |||
| 1 | 2003-03-16 Juanma Barranquero <lektu@terra.es> | ||
| 2 | |||
| 3 | * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET. | ||
| 4 | |||
| 1 | 2003-03-16 Kim F. Storm <storm@cua.dk> | 5 | 2003-03-16 Kim F. Storm <storm@cua.dk> |
| 2 | 6 | ||
| 3 | The following changes consolidate some of the gui-independent | 7 | The following changes consolidate some of the gui-independent |
| 4 | parts of the processing and drawing of "glyph strings" from | 8 | parts of the processing and drawing of "glyph strings" from |
| 5 | xterm.c, w32term.c, and macterm.c into xdisp.c. | 9 | xterm.c, w32term.c, and macterm.c into xdisp.c. |
| 6 | 10 | ||
| 7 | * dispextern.h (struct glyph): Reduce face_id member from 22 to | 11 | * dispextern.h (struct glyph): Reduce face_id member from 22 to |
| 8 | 21 bits (this reduces number of faces from 4M to 2M). | 12 | 21 bits (this reduces number of faces from 4M to 2M). |
| 9 | Replace W32 specific w32_font_type member (2 bits) by generic | 13 | Replace W32 specific w32_font_type member (2 bits) by generic |
| @@ -42,7 +46,7 @@ | |||
| 42 | (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE) | 46 | (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE) |
| 43 | (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): | 47 | (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): |
| 44 | New macros for consolidated code. | 48 | New macros for consolidated code. |
| 45 | 49 | ||
| 46 | * xterm.c: Remove consolidated defines and code. | 50 | * xterm.c: Remove consolidated defines and code. |
| 47 | (x_per_char_metric, x_encode_char) | 51 | (x_per_char_metric, x_encode_char) |
| 48 | (x_compute_glyph_string_overhangs): Adapt to RIF requirements. | 52 | (x_compute_glyph_string_overhangs): Adapt to RIF requirements. |
| @@ -53,7 +57,7 @@ | |||
| 53 | (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. | 57 | (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros. |
| 54 | 58 | ||
| 55 | * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY) | 59 | * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY) |
| 56 | (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): | 60 | (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): |
| 57 | New macros for consolidation. | 61 | New macros for consolidation. |
| 58 | 62 | ||
| 59 | * w32term.c: Remove consolidated defines and code. | 63 | * w32term.c: Remove consolidated defines and code. |
diff --git a/src/xdisp.c b/src/xdisp.c index 56657202c01..77c54ccb0a4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11105,7 +11105,7 @@ redisplay_window (window, just_this_one_p) | |||
| 11105 | clear_glyph_matrix (w->desired_matrix); | 11105 | clear_glyph_matrix (w->desired_matrix); |
| 11106 | goto recenter; | 11106 | goto recenter; |
| 11107 | } | 11107 | } |
| 11108 | 11108 | ||
| 11109 | /* If centering point failed to make the whole line visible, | 11109 | /* If centering point failed to make the whole line visible, |
| 11110 | put point at the top instead. That has to make the whole line | 11110 | put point at the top instead. That has to make the whole line |
| 11111 | visible, if it can be done. */ | 11111 | visible, if it can be done. */ |
| @@ -17475,7 +17475,7 @@ x_produce_glyphs (it) | |||
| 17475 | if (font == NULL) | 17475 | if (font == NULL) |
| 17476 | { | 17476 | { |
| 17477 | font = FRAME_FONT (it->f); | 17477 | font = FRAME_FONT (it->f); |
| 17478 | boff = it->f->output_data.x->baseline_offset; | 17478 | boff = FRAME_BASELINE_OFFSET (it->f); |
| 17479 | font_info = NULL; | 17479 | font_info = NULL; |
| 17480 | } | 17480 | } |
| 17481 | else | 17481 | else |
| @@ -17488,7 +17488,7 @@ x_produce_glyphs (it) | |||
| 17488 | } | 17488 | } |
| 17489 | 17489 | ||
| 17490 | if (font_info | 17490 | if (font_info |
| 17491 | && (pcm = rif->per_char_metric (font, &char2b, | 17491 | && (pcm = rif->per_char_metric (font, &char2b, |
| 17492 | FONT_TYPE_FOR_MULTIBYTE (font, ch)))) | 17492 | FONT_TYPE_FOR_MULTIBYTE (font, ch)))) |
| 17493 | { | 17493 | { |
| 17494 | width = pcm->width; | 17494 | width = pcm->width; |