1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00

(x_make_gc): Use the default font id of the frame for

GCs.
This commit is contained in:
Kenichi Handa 2008-02-17 02:01:59 +00:00
parent 9c9f2e85eb
commit 74170e3879

View file

@ -3042,6 +3042,11 @@ x_make_gc (f)
Note that many default values are used. */
/* Normal video */
#ifdef USE_FONT_BACKEND
if (enable_font_backend)
gc_values.font = FRAME_X_DISPLAY_INFO (f)->font->fid;
else
#endif
gc_values.font = FRAME_FONT (f)->fid;
gc_values.foreground = FRAME_FOREGROUND_PIXEL (f);
gc_values.background = FRAME_BACKGROUND_PIXEL (f);