Clear invalid selectors also in CallTo16 relay 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 "wine/winuser16.h"
13
14 /***********************************************************************
15  *           DISPLAY_Inquire                    (DISPLAY.101)
16  */
17 WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo) 
18 {
19     lpCursorInfo->wXMickeys = 1;
20     lpCursorInfo->wYMickeys = 1;
21
22     return sizeof(CURSORINFO);
23 }
24
25 /***********************************************************************
26  *           DISPLAY_SetCursor                  (DISPLAY.102)
27  */
28 VOID WINAPI DISPLAY_SetCursor( CURSORICONINFO *lpCursor )
29 {
30    MOUSE_Driver->pSetCursor(lpCursor);
31 }
32
33 /***********************************************************************
34  *           DISPLAY_MoveCursor                 (DISPLAY.103)
35  */
36 VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
37 {
38    MOUSE_Driver->pMoveCursor(wAbsX, wAbsY);
39 }
40
41 /***********************************************************************
42  *           DISPLAY_CheckCursor                  (DISPLAY.104)
43  */
44 VOID WINAPI DISPLAY_CheckCursor()
45 {
46     FIXME( cursor, "stub\n" );
47 }
48
49 /***********************************************************************
50  *           UserRepaintDisable                 (DISPLAY.500)
51  */
52 VOID WINAPI UserRepaintDisable16( BOOL16 disable )
53 {
54     TRACE( cursor, "(%d): stub\n", disable );
55 }