aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2003-07-06 21:58:12 +0000
committerJason Rumney2003-07-06 21:58:12 +0000
commitccc0fdaa3ebc3fc50e2a895318796dd1f20c4443 (patch)
treede6f23b036e0cbc963390ac96e989dc4fcd2178a /src
parent0390f991580edaee25bb443054bc2b4d6b41b33e (diff)
downloademacs-ccc0fdaa3ebc3fc50e2a895318796dd1f20c4443.tar.gz
emacs-ccc0fdaa3ebc3fc50e2a895318796dd1f20c4443.zip
(clipboard_sequence_fn): New variable.
(globals_of_w32fns): Initialize it.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 0c42e3ddc19..e5ec00e8651 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -257,11 +257,11 @@ static unsigned mouse_move_timer = 0;
257/* Window that is tracking the mouse. */ 257/* Window that is tracking the mouse. */
258static HWND track_mouse_window; 258static HWND track_mouse_window;
259 259
260typedef BOOL (WINAPI * TrackMouseEvent_Proc) ( 260typedef BOOL (WINAPI * TrackMouseEvent_Proc)
261 IN OUT LPTRACKMOUSEEVENT lpEventTrack 261 (IN OUT LPTRACKMOUSEEVENT lpEventTrack);
262 );
263 262
264TrackMouseEvent_Proc track_mouse_event_fn=NULL; 263TrackMouseEvent_Proc track_mouse_event_fn = NULL;
264ClipboardSequence_Proc clipboard_sequence_fn = NULL;
265 265
266/* W95 mousewheel handler */ 266/* W95 mousewheel handler */
267unsigned int msh_mousewheel = 0; 267unsigned int msh_mousewheel = 0;
@@ -14483,11 +14483,15 @@ versions of Windows) characters. */);
14483void globals_of_w32fns () 14483void globals_of_w32fns ()
14484{ 14484{
14485 HMODULE user32_lib = GetModuleHandle ("user32.dll"); 14485 HMODULE user32_lib = GetModuleHandle ("user32.dll");
14486 /* 14486 /*
14487 TrackMouseEvent not available in all versions of Windows, so must load 14487 TrackMouseEvent not available in all versions of Windows, so must load
14488 it dynamically. Do it once, here, instead of every time it is used. 14488 it dynamically. Do it once, here, instead of every time it is used.
14489 */ 14489 */
14490 track_mouse_event_fn = (TrackMouseEvent_Proc) GetProcAddress (user32_lib, "TrackMouseEvent"); 14490 track_mouse_event_fn = (TrackMouseEvent_Proc)
14491 GetProcAddress (user32_lib, "TrackMouseEvent");
14492 /* ditto for GetClipboardSequenceNumber. */
14493 clipboard_sequence_fn = (ClipboardSequence_Proc)
14494 GetProcAddress (user32_lib, "GetClipboardSequenceNumber");
14491} 14495}
14492 14496
14493/* Initialize image types. Based on which libraries are available. */ 14497/* Initialize image types. Based on which libraries are available. */