From 0de9a8434962b9823df2dacd23952f8ba656103f Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 20 Jun 2024 21:29:39 +0800 Subject: [PATCH] Fix NS build * src/nsfns.m (Fx_create_frame, ns_create_tip_frame): Remove references to deleted variable. (bug#71638) (cherry picked from commit 199fcbe2d30ff021491b345decf22024913ca40f) --- src/nsfns.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/nsfns.m b/src/nsfns.m index d9c1296056c..add7a93dfba 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -1312,14 +1312,11 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, block_input (); #ifdef NS_IMPL_COCOA - mac_register_font_driver (f); + mac_register_font_driver (f); #else - register_font_driver (&nsfont_driver, f); + register_font_driver (&nsfont_driver, f); #endif - image_cache_refcount = - FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; - gui_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); @@ -3022,9 +3019,6 @@ ns_create_tip_frame (struct ns_display_info *dpyinfo, Lisp_Object parms) #endif unblock_input (); - image_cache_refcount = - FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; - gui_default_parameter (f, parms, Qfont_backend, Qnil, "fontBackend", "FontBackend", RES_TYPE_STRING); -- 2.39.2