Sweden-Number/dlls/user/display.c

82 lines
2.0 KiB
C

/*
* DISPLAY driver
*
* Copyright 1998 Ulrich Weigand
*
*/
#include "debugtools.h"
#include "windef.h"
#include "user.h"
#include "wine/winuser16.h"
DEFAULT_DEBUG_CHANNEL(cursor);
#include "pshpack1.h"
typedef struct tagCURSORINFO
{
WORD wXMickeys;
WORD wYMickeys;
} CURSORINFO, *PCURSORINFO, *LPCURSORINFO;
#include "poppack.h"
/***********************************************************************
* DISPLAY_Inquire (DISPLAY.101)
*/
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo)
{
lpCursorInfo->wXMickeys = 1;
lpCursorInfo->wYMickeys = 1;
return sizeof(CURSORINFO);
}
/***********************************************************************
* DISPLAY_SetCursor (DISPLAY.102)
*/
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
{
USER_Driver.pSetCursor(lpCursor);
}
/***********************************************************************
* DISPLAY_MoveCursor (DISPLAY.103)
*/
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
{
USER_Driver.pMoveCursor(wAbsX, wAbsY);
}
/***********************************************************************
* DISPLAY_CheckCursor (DISPLAY.104)
*/
VOID WINAPI DISPLAY_CheckCursor( void )
{
TRACE("stub\n" );
}
/***********************************************************************
* DISPLAY_GetDriverResourceID (DISPLAY.450)
*
* Used by USER to check if driver contains better version of a builtin
* resource than USER (yes, our DISPLAY does !).
* wQueriedResID is the ID USER asks about.
* lpsResName does often contain "OEMBIN".
*/
DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
{
if (wQueriedResID == 3)
return (DWORD)1;
return (DWORD)wQueriedResID;
}
/***********************************************************************
* UserRepaintDisable (DISPLAY.500)
*/
VOID WINAPI UserRepaintDisable16( BOOL16 disable )
{
USER_Driver.pUserRepaintDisable( disable );
}