Fixed a major memory leak in the window management code.
[wine] / windows / display.c
1 /*
2  * DISPLAY driver
3  *
4  * Copyright 1998 Ulrich Weigand
5  *
6  */
7
8 #include "debug.h"
9 #include "display.h"
10 #include "mouse.h"
11 #include "windef.h"
12 #include "message.h"
13 #include "wine/winuser16.h"
14
15 DEFAULT_DEBUG_CHANNEL(cursor)
16
17 /***********************************************************************
18  *           DISPLAY_Inquire                    (DISPLAY.101)
19  */
20 WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo) 
21 {
22     lpCursorInfo->wXMickeys = 1;
23     lpCursorInfo->wYMickeys = 1;
24
25     return sizeof(CURSORINFO);
26 }
27
28 /***********************************************************************
29  *           DISPLAY_SetCursor                  (DISPLAY.102)
30  */
31 VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
32 {
33    MOUSE_Driver->pSetCursor(lpCursor);
34 }
35
36 /***********************************************************************
37  *           DISPLAY_MoveCursor                 (DISPLAY.103)
38  */
39 VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
40 {
41    MOUSE_Driver->pMoveCursor(wAbsX, wAbsY);
42 }
43
44 /***********************************************************************
45  *           DISPLAY_CheckCursor                  (DISPLAY.104)
46  */
47 VOID WINAPI DISPLAY_CheckCursor()
48 {
49     FIXME( cursor, "stub\n" );
50 }
51
52 /***********************************************************************
53  *           UserRepaintDisable                 (DISPLAY.500)
54  */
55 VOID WINAPI UserRepaintDisable16( BOOL16 disable )
56 {
57     EVENT_Driver->pUserRepaintDisable( disable );
58 }
59