diff options
| author | YAMAMOTO Mitsuharu | 2019-05-05 15:55:07 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2019-05-05 15:55:07 +0900 |
| commit | 3f9d96e3d70e94768add7d89ffcb94be7de4597e (patch) | |
| tree | f9d6dd3317c85de377a49c475d2c46ef2e7a4e03 /src | |
| parent | f208d5ae77cf381c6f1db9b1aef76d5e9805a106 (diff) | |
| download | emacs-3f9d96e3d70e94768add7d89ffcb94be7de4597e.tar.gz emacs-3f9d96e3d70e94768add7d89ffcb94be7de4597e.zip | |
Fix last changes in src/ftfont.c
* src/ftfont.c (ftfont_shape): Add missing argument direction.
(fthbfont_shape) [HAVE_HARFBUZZ]: Remove unused variable ftfont_info.
(fthbfont_driver) [HAVE_HARFBUZZ]: Remove redundant redeclaration.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ftfont.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index f4e0d7d8408..2373af8766a 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -2691,7 +2691,7 @@ ftfont_shape_by_flt (Lisp_Object lgstring, struct font *font, | |||
| 2691 | } | 2691 | } |
| 2692 | 2692 | ||
| 2693 | Lisp_Object | 2693 | Lisp_Object |
| 2694 | ftfont_shape (Lisp_Object lgstring) | 2694 | ftfont_shape (Lisp_Object lgstring, Lisp_Object direction) |
| 2695 | { | 2695 | { |
| 2696 | struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); | 2696 | struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); |
| 2697 | struct font_info *ftfont_info = (struct font_info *) font; | 2697 | struct font_info *ftfont_info = (struct font_info *) font; |
| @@ -3019,7 +3019,6 @@ Lisp_Object | |||
| 3019 | fthbfont_shape (Lisp_Object lgstring, Lisp_Object direction) | 3019 | fthbfont_shape (Lisp_Object lgstring, Lisp_Object direction) |
| 3020 | { | 3020 | { |
| 3021 | struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); | 3021 | struct font *font = CHECK_FONT_GET_OBJECT (LGSTRING_FONT (lgstring)); |
| 3022 | struct font_info *ftfont_info = (struct font_info *) font; | ||
| 3023 | 3022 | ||
| 3024 | return fthbfont_shape_by_hb (lgstring, font, direction); | 3023 | return fthbfont_shape_by_hb (lgstring, font, direction); |
| 3025 | } | 3024 | } |
| @@ -3116,9 +3115,6 @@ static struct font_driver const ftfont_driver = | |||
| 3116 | .filter_properties = ftfont_filter_properties, | 3115 | .filter_properties = ftfont_filter_properties, |
| 3117 | .combining_capability = ftfont_combining_capability, | 3116 | .combining_capability = ftfont_combining_capability, |
| 3118 | }; | 3117 | }; |
| 3119 | #ifdef HAVE_HARFBUZZ | ||
| 3120 | static struct font_driver fthbfont_driver; | ||
| 3121 | #endif /* HAVE_HARFBUZZ */ | ||
| 3122 | 3118 | ||
| 3123 | void | 3119 | void |
| 3124 | syms_of_ftfont (void) | 3120 | syms_of_ftfont (void) |