Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2a6d0874
Commit
2a6d0874
authored
Mar 16, 2003
by
Juanma Barranquero
Browse files
(x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
parent
fad49844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
src/ChangeLog
src/ChangeLog
+7
-3
src/xdisp.c
src/xdisp.c
+3
-3
No files found.
src/ChangeLog
View file @
2a6d0874
2003-03-16 Juanma Barranquero <lektu@terra.es>
* xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
2003-03-16 Kim F. Storm <storm@cua.dk>
The following changes consolidate some of the gui-independent
parts of the processing and drawing of "glyph strings" from
xterm.c, w32term.c, and macterm.c into xdisp.c.
* dispextern.h (struct glyph): Reduce face_id member from 22 to
21 bits (this reduces number of faces from 4M to 2M).
Replace W32 specific w32_font_type member (2 bits) by generic
...
...
@@ -42,7 +46,7 @@
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
New macros for consolidated code.
* xterm.c: Remove consolidated defines and code.
(x_per_char_metric, x_encode_char)
(x_compute_glyph_string_overhangs): Adapt to RIF requirements.
...
...
@@ -53,7 +57,7 @@
(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
* w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
New macros for consolidation.
* w32term.c: Remove consolidated defines and code.
...
...
src/xdisp.c
View file @
2a6d0874
...
...
@@ -11105,7 +11105,7 @@ redisplay_window (window, just_this_one_p)
clear_glyph_matrix (w->desired_matrix);
goto recenter;
}
/* If centering point failed to make the whole line visible,
put point at the top instead. That has to make the whole line
visible, if it can be done. */
...
...
@@ -17475,7 +17475,7 @@ x_produce_glyphs (it)
if (font == NULL)
{
font = FRAME_FONT (it->f);
boff =
it->f->output_data.x->baseline_offset
;
boff =
FRAME_BASELINE_OFFSET (it->f)
;
font_info = NULL;
}
else
...
...
@@ -17488,7 +17488,7 @@ x_produce_glyphs (it)
}
if (font_info
&& (pcm = rif->per_char_metric (font, &char2b,
&& (pcm = rif->per_char_metric (font, &char2b,
FONT_TYPE_FOR_MULTIBYTE (font, ch))))
{
width = pcm->width;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment