aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorAlexander Gramiak2019-05-09 09:37:50 -0600
committerAlexander Gramiak2019-05-10 17:26:12 -0600
commit616ce44ac53f08bf447cbc032f4bb10cd65c0b70 (patch)
tree99e0fca55271fabf5e81819f95c19e484a5fa90b /src/w32term.c
parent6bfc5fc6c4dfbed4b07528b64414fb04675cdf79 (diff)
downloademacs-616ce44ac53f08bf447cbc032f4bb10cd65c0b70.tar.gz
emacs-616ce44ac53f08bf447cbc032f4bb10cd65c0b70.zip
Convert Free_Pixmap macro into terminal hook
* src/termhooks.h (terminal) [HAVE_WINDOW_SYSTEM]: New terminal hook free_pixmap. * src/image.c: Replace Free_Pixmap with free_pixmap. * src/msdos.h (FRAME_X_DISPLAY): * src/nsgui.h (Display): * src/nsterm.h (FRAME_NS_DISPLAY, FRAME_X_DISPLAY, FRAME_X_SCREEN) (FRAME_X_VISUAL): * src/w32term.h (FRAME_X_DISPLAY): Remove unused X-compatibility macros and typedefs. * src/nsterm.m: * src/w32term.c: * src/xterm.c: Implement and set free_pixmap hook.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 0abec3d92a7..435455e1a6d 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -6869,6 +6869,7 @@ w32_wm_set_size_hint (struct frame *f, long flags, bool user_position)
6869 leave_crit (); 6869 leave_crit ();
6870} 6870}
6871 6871
6872
6872/*********************************************************************** 6873/***********************************************************************
6873 Fonts 6874 Fonts
6874 ***********************************************************************/ 6875 ***********************************************************************/
@@ -6940,6 +6941,18 @@ w32_toggle_invisible_pointer (struct frame *f, bool invisible)
6940 unblock_input (); 6941 unblock_input ();
6941} 6942}
6942 6943
6944
6945/***********************************************************************
6946 Image Hooks
6947 ***********************************************************************/
6948
6949static void
6950w32_free_pixmap (struct frame *_f, Pixmap pixmap)
6951{
6952 DeleteObject (pixmap);
6953}
6954
6955
6943/*********************************************************************** 6956/***********************************************************************
6944 Initialization 6957 Initialization
6945 ***********************************************************************/ 6958 ***********************************************************************/
@@ -7119,6 +7132,7 @@ w32_create_terminal (struct w32_display_info *dpyinfo)
7119 terminal->redeem_scroll_bar_hook = w32_redeem_scroll_bar; 7132 terminal->redeem_scroll_bar_hook = w32_redeem_scroll_bar;
7120 terminal->judge_scroll_bars_hook = w32_judge_scroll_bars; 7133 terminal->judge_scroll_bars_hook = w32_judge_scroll_bars;
7121 terminal->get_string_resource_hook = w32_get_string_resource; 7134 terminal->get_string_resource_hook = w32_get_string_resource;
7135 terminal->free_pixmap = w32_free_pixmap;
7122 terminal->delete_frame_hook = w32_destroy_window; 7136 terminal->delete_frame_hook = w32_destroy_window;
7123 terminal->delete_terminal_hook = w32_delete_terminal; 7137 terminal->delete_terminal_hook = w32_delete_terminal;
7124 /* Other hooks are NULL by default. */ 7138 /* Other hooks are NULL by default. */