Framework for the doppler effect.
[wine] / dlls / user / display.c
1 /*
2  * DISPLAY driver
3  *
4  * Copyright 1998 Ulrich Weigand
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include "wine/debug.h"
22 #include "windef.h"
23 #include "user.h"
24 #include "wine/winuser16.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(cursor);
27
28 #include "pshpack1.h"
29 typedef struct tagCURSORINFO
30 {
31     WORD wXMickeys;
32     WORD wYMickeys;
33 } CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
34 #include "poppack.h"
35
36 /***********************************************************************
37  *           Inquire                    (DISPLAY.101)
38  */
39 WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo)
40 {
41     lpCursorInfo->wXMickeys = 1;
42     lpCursorInfo->wYMickeys = 1;
43
44     return sizeof(CURSORINFO16);
45 }
46
47 /***********************************************************************
48  *           SetCursor                  (DISPLAY.102)
49  */
50 VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
51 {
52     USER_Driver.pSetCursor(lpCursor);
53 }
54
55 /***********************************************************************
56  *           MoveCursor                 (DISPLAY.103)
57  */
58 VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
59 {
60     USER_Driver.pSetCursorPos(wAbsX, wAbsY);
61 }
62
63 /***********************************************************************
64  *           CheckCursor                  (DISPLAY.104)
65  */
66 VOID WINAPI DISPLAY_CheckCursor( void )
67 {
68     TRACE("stub\n" );
69 }
70
71 /***********************************************************************
72  *           GetDriverResourceID                  (DISPLAY.450)
73  *
74  * Used by USER to check if driver contains better version of a builtin
75  * resource than USER (yes, our DISPLAY does !).
76  * wQueriedResID is the ID USER asks about.
77  * lpsResName does often contain "OEMBIN".
78  */
79 DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
80 {
81         if (wQueriedResID == 3)
82                 return (DWORD)1;
83
84         return (DWORD)wQueriedResID;
85 }
86
87 /***********************************************************************
88  *           UserRepaintDisable                 (DISPLAY.500)
89  */
90 VOID WINAPI UserRepaintDisable16( BOOL16 disable )
91 {
92     FIXME("stub\n");
93 }