diff options
| author | Dmitry Antipov | 2013-10-25 10:55:36 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-25 10:55:36 +0400 |
| commit | 78e0b35c45892995da596c65759fdece3e67129d (patch) | |
| tree | 4e18a2b9f5703f8eb4c7151fc061f4c13892432e /src/font.h | |
| parent | 963ce6361af7f8b7aefb63e7a50956e497020b12 (diff) | |
| download | emacs-78e0b35c45892995da596c65759fdece3e67129d.tar.gz emacs-78e0b35c45892995da596c65759fdece3e67129d.zip | |
Omit unused frame argument of font API's close function.
* font.h (struct font): Drop frame argument. Adjust comment.
* font.c (font_clear_cache, font_close_object): Adjust users.
* ftfont.c (ftfont_close):
* ftxfont.c (ftxfont_close):
* macfont.m (macfont_close):
* nsfont.m (nsfont_close):
* w32font.c (w32font_close):
* xfont.c (xfont_close):
* xftfont.c (xftfont_close): Adjust driver-specific close
functions, tweak comments and make functions safe if called
more than once for the same font object.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/font.h b/src/font.h index 0ec56590916..9285330ce54 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -545,8 +545,8 @@ struct font_driver | |||
| 545 | Lisp_Object (*open) (struct frame *f, Lisp_Object font_entity, | 545 | Lisp_Object (*open) (struct frame *f, Lisp_Object font_entity, |
| 546 | int pixel_size); | 546 | int pixel_size); |
| 547 | 547 | ||
| 548 | /* Close FONT on frame F. */ | 548 | /* Close FONT. */ |
| 549 | void (*close) (struct frame *f, struct font *font); | 549 | void (*close) (struct font *font); |
| 550 | 550 | ||
| 551 | /* Optional (if FACE->extra is not used). | 551 | /* Optional (if FACE->extra is not used). |
| 552 | Prepare FACE for displaying characters by FONT on frame F by | 552 | Prepare FACE for displaying characters by FONT on frame F by |