display.c 2.72 KB
Newer Older
1 2 3 4 5
/*
 * DISPLAY driver
 *
 * Copyright 1998 Ulrich Weigand
 *
6 7 8 9 10 11 12 13 14 15 16 17
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 20
 */

21 22
#include <stdarg.h>

23
#include "wine/debug.h"
24
#include "windef.h"
25
#include "winbase.h"
26
#include "user_private.h"
27
#include "wine/winuser16.h"
28

29
WINE_DEFAULT_DEBUG_CHANNEL(cursor);
30

31
#include "pshpack1.h"
32
typedef struct tagCURSORINFO16
33 34 35
{
    WORD wXMickeys;
    WORD wYMickeys;
Per Nystrom's avatar
Per Nystrom committed
36
} CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
37 38
#include "poppack.h"

39
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
40
 *           Inquire			(DISPLAY.101)
41
 */
Per Nystrom's avatar
Per Nystrom committed
42
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo)
43
{
44 45
    lpCursorInfo->wXMickeys = 1;
    lpCursorInfo->wYMickeys = 1;
46

Per Nystrom's avatar
Per Nystrom committed
47
    return sizeof(CURSORINFO16);
48 49
}

50
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
51
 *           SetCursor			(DISPLAY.102)
52
 */
53
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
54
{
55
    USER_Driver->pSetCursor(lpCursor);
56 57 58
}

/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
59
 *           MoveCursor			(DISPLAY.103)
60
 */
61
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
62
{
63
    USER_Driver->pSetCursorPos(wAbsX, wAbsY);
64 65 66
}

/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
67
 *           CheckCursor                  (DISPLAY.104)
68
 */
Patrik Stridvall's avatar
Patrik Stridvall committed
69
VOID WINAPI DISPLAY_CheckCursor( void )
70
{
71
    TRACE("stub\n" );
72 73
}

74
/***********************************************************************
Patrik Stridvall's avatar
Patrik Stridvall committed
75
 *           GetDriverResourceID                  (DISPLAY.450)
76 77
 *
 * Used by USER to check if driver contains better version of a builtin
78
 * resource than USER (yes, our DISPLAY does !).
79
 * wQueriedResID is the ID USER asks about.
80
 * lpsResName does often contain "OEMBIN".
81 82 83 84
 */
DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
{
	if (wQueriedResID == 3)
85
		return (DWORD)1;
86 87 88 89

	return (DWORD)wQueriedResID;
}

90
/***********************************************************************
91
 *           UserRepaintDisable			(DISPLAY.500)
92
 */
93
VOID WINAPI UserRepaintDisable16( BOOL16 disable )
94
{
95
    FIXME("stub\n");
96
}