]> git.eshelyaron.com Git - emacs.git/commit
Replace XChar2b with unsigned in all font backends
authorAlexander Gramiak <agrambot@gmail.com>
Fri, 10 May 2019 15:45:57 +0000 (09:45 -0600)
committerAlexander Gramiak <agrambot@gmail.com>
Mon, 20 May 2019 01:50:32 +0000 (19:50 -0600)
commita4fe9c70af7a60117480d3361541550341da801a
treef9c082b94c2af6df79f7aa66dbcce4a97eabbbbd
parentb3d3c0daa49f5cbed7c58c7508d4d36dba3757e5
Replace XChar2b with unsigned in all font backends

The xfont backend using XChar2b in its API doesn't mean that we should
use it everywhere else.

* src/dispextern.h (glyph_string):
* src/ftcrfont.c (ftcrfont_draw):
* src/ftxfont.c (ftxfont_draw):
* src/w32term.c (w32_draw_glyphless_glyph_string_foreground):
* src/xdisp.c (init_glyph_string, get_char_face_and_encoding)
(get_glyph_face_and_encoding, get_char_glyph_code)
(fill_gstring_glyph_string, fill_stretch_glyph_string)
(normal_char_ascent_descent, gui_get_glyph_overhangs)
(compute_overhangs_and_x, gui_produce_glyphs):
* src/xfont.c (xfont_get_pcm, xfont_chars_supported, xfont_open)
(xfont_encode_char, xfont_text_extents, xfont_draw)
* src/xftfont.c (xftfont_draw):
* src/xterm.c (x_compute_glyph_string_overhangs)
(x_draw_glyphless_glyph_string_foreground): Use unsigned over XChar2b.

* src/nsgui.h:
* src/w32gui.h:
* src/xterm.h: Remove XChar2b, STORE_XCHAR2B, XCHAR2B_BYTE1, and
XCHAR2B_BYTE2 typedefs and macros.

* src/font.h (font_driver):
(ftfont_text_extents)
* src/ftcrfont.c (ftcrfont_text_extents):
* src/ftfont.c (ftfont_text_extents):
* src/macfont.m (macfont_text_extents):
* src/nsfont.m (nsfont_text_extents):
* src/w32font.h (w32_font_text_extents):
* src/font.c (xfont_text_extents):
* src/xftfont.c (xftfont_text_extents): Make code parameter const.
17 files changed:
src/dispextern.h
src/font.h
src/ftcrfont.c
src/ftfont.c
src/ftxfont.c
src/macfont.m
src/nsfont.m
src/nsgui.h
src/w32font.c
src/w32font.h
src/w32gui.h
src/w32term.c
src/xdisp.c
src/xfont.c
src/xftfont.c
src/xterm.c
src/xterm.h