Sweden-Number/windows/display.c

74 lines
1.8 KiB
C
Raw Normal View History

/*
* DISPLAY driver
*
* Copyright 1998 Ulrich Weigand
*
*/
#include "config.h"
1998-12-26 13:00:43 +01:00
#include "display.h"
1999-02-28 20:14:33 +01:00
#include "debug.h"
1998-12-26 13:00:43 +01:00
#include "wintypes.h"
#ifndef X_DISPLAY_MISSING
1998-12-26 13:00:43 +01:00
extern MOUSE_DRIVER X11DRV_MOUSE_Driver;
#else /* X_DISPLAY_MISSING */
extern MOUSE_DRIVER TTYDRV_MOUSE_Driver;
#endif /* X_DISPLAY_MISSING */
1998-12-26 13:00:43 +01:00
/***********************************************************************
* MOUSE_GetDriver()
*/
MOUSE_DRIVER *MOUSE_GetDriver()
{
#ifndef X_DISPLAY_MISSING
1998-12-26 13:00:43 +01:00
return &X11DRV_MOUSE_Driver;
#else /* X_DISPLAY_MISSING */
return &TTYDRV_MOUSE_Driver;
#endif /* X_DISPLAY_MISSING */
1998-12-26 13:00:43 +01:00
}
/***********************************************************************
* 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( CURSORICONINFO *lpCursor )
{
1998-12-26 13:00:43 +01:00
MOUSE_GetDriver()->pSetCursor(lpCursor);
}
/***********************************************************************
* DISPLAY_MoveCursor (DISPLAY.103)
*/
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
{
1998-12-26 13:00:43 +01:00
MOUSE_GetDriver()->pMoveCursor(wAbsX, wAbsY);
}
/***********************************************************************
* DISPLAY_CheckCursor (DISPLAY.104)
*/
VOID WINAPI DISPLAY_CheckCursor()
{
FIXME( cursor, "stub\n" );
}
/***********************************************************************
* UserRepaintDisable (DISPLAY.500)
*/
VOID WINAPI UserRepaintDisable16( BOOL16 disable )
{
TRACE( cursor, "(%d): stub\n", disable );
}