1998-11-08 12:24:02 +00:00
|
|
|
/*
|
|
|
|
* DISPLAY driver
|
|
|
|
*
|
|
|
|
* Copyright 1998 Ulrich Weigand
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
1999-02-04 14:05:38 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
1998-11-08 12:24:02 +00:00
|
|
|
#include "debug.h"
|
1998-12-26 12:00:43 +00:00
|
|
|
#include "display.h"
|
|
|
|
#include "wintypes.h"
|
1998-11-14 18:57:47 +00:00
|
|
|
|
1999-02-04 14:05:38 +00:00
|
|
|
#ifndef X_DISPLAY_MISSING
|
1998-12-26 12:00:43 +00:00
|
|
|
extern MOUSE_DRIVER X11DRV_MOUSE_Driver;
|
1999-02-04 14:05:38 +00:00
|
|
|
#else /* X_DISPLAY_MISSING */
|
|
|
|
extern MOUSE_DRIVER TTYDRV_MOUSE_Driver;
|
|
|
|
#endif /* X_DISPLAY_MISSING */
|
1998-11-14 18:57:47 +00:00
|
|
|
|
1998-12-26 12:00:43 +00:00
|
|
|
/***********************************************************************
|
|
|
|
* MOUSE_GetDriver()
|
|
|
|
*/
|
|
|
|
MOUSE_DRIVER *MOUSE_GetDriver()
|
|
|
|
{
|
1999-02-04 14:05:38 +00:00
|
|
|
#ifndef X_DISPLAY_MISSING
|
1998-12-26 12:00:43 +00:00
|
|
|
return &X11DRV_MOUSE_Driver;
|
1999-02-04 14:05:38 +00:00
|
|
|
#else /* X_DISPLAY_MISSING */
|
|
|
|
return &TTYDRV_MOUSE_Driver;
|
|
|
|
#endif /* X_DISPLAY_MISSING */
|
1998-12-26 12:00:43 +00:00
|
|
|
}
|
1998-11-08 12:24:02 +00:00
|
|
|
|
|
|
|
/***********************************************************************
|
1998-11-14 18:57:47 +00:00
|
|
|
* DISPLAY_Inquire (DISPLAY.101)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1998-11-14 18:57:47 +00:00
|
|
|
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo)
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1998-11-14 18:57:47 +00:00
|
|
|
lpCursorInfo->wXMickeys = 1;
|
|
|
|
lpCursorInfo->wYMickeys = 1;
|
1998-11-08 12:24:02 +00:00
|
|
|
|
1998-11-14 18:57:47 +00:00
|
|
|
return sizeof(CURSORINFO);
|
|
|
|
}
|
|
|
|
|
1998-11-08 12:24:02 +00:00
|
|
|
/***********************************************************************
|
1998-11-14 18:57:47 +00:00
|
|
|
* DISPLAY_SetCursor (DISPLAY.102)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1998-11-14 18:57:47 +00:00
|
|
|
VOID WINAPI DISPLAY_SetCursor( CURSORICONINFO *lpCursor )
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1998-12-26 12:00:43 +00:00
|
|
|
MOUSE_GetDriver()->pSetCursor(lpCursor);
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-11-14 18:57:47 +00:00
|
|
|
* DISPLAY_MoveCursor (DISPLAY.103)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1998-11-14 18:57:47 +00:00
|
|
|
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1998-12-26 12:00:43 +00:00
|
|
|
MOUSE_GetDriver()->pMoveCursor(wAbsX, wAbsY);
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-11-14 18:57:47 +00:00
|
|
|
* DISPLAY_CheckCursor (DISPLAY.104)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1998-11-14 18:57:47 +00:00
|
|
|
VOID WINAPI DISPLAY_CheckCursor()
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1998-11-14 18:57:47 +00:00
|
|
|
FIXME( cursor, "stub\n" );
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
1998-11-14 18:57:47 +00:00
|
|
|
* UserRepaintDisable (DISPLAY.500)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
VOID WINAPI UserRepaintDisable16( BOOL16 disable )
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1998-11-14 18:57:47 +00:00
|
|
|
TRACE( cursor, "(%d): stub\n", disable );
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|