1998-11-08 12:24:02 +00:00
|
|
|
/*
|
|
|
|
* DISPLAY driver
|
|
|
|
*
|
|
|
|
* Copyright 1998 Ulrich Weigand
|
|
|
|
*
|
2002-03-09 23:29:33 +00:00
|
|
|
* 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
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
|
|
|
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
1999-03-14 16:35:05 +00:00
|
|
|
#include "windef.h"
|
2003-09-05 23:08:26 +00:00
|
|
|
#include "winbase.h"
|
2004-12-08 18:06:14 +00:00
|
|
|
#include "user_private.h"
|
1999-04-01 08:16:08 +00:00
|
|
|
#include "wine/winuser16.h"
|
1998-11-08 12:24:02 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(cursor);
|
1999-04-19 14:56:29 +00:00
|
|
|
|
2000-06-03 04:20:19 +00:00
|
|
|
#include "pshpack1.h"
|
2004-11-19 18:26:20 +00:00
|
|
|
typedef struct tagCURSORINFO16
|
2000-06-03 04:20:19 +00:00
|
|
|
{
|
|
|
|
WORD wXMickeys;
|
|
|
|
WORD wYMickeys;
|
2002-08-28 23:38:10 +00:00
|
|
|
} CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
|
2000-06-03 04:20:19 +00:00
|
|
|
#include "poppack.h"
|
|
|
|
|
1998-11-08 12:24:02 +00:00
|
|
|
/***********************************************************************
|
2001-07-02 19:59:40 +00:00
|
|
|
* Inquire (DISPLAY.101)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
2002-08-28 23:38:10 +00:00
|
|
|
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 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
|
|
|
|
2002-08-28 23:38:10 +00:00
|
|
|
return sizeof(CURSORINFO16);
|
1998-11-14 18:57:47 +00:00
|
|
|
}
|
|
|
|
|
1998-11-08 12:24:02 +00:00
|
|
|
/***********************************************************************
|
2001-07-02 19:59:40 +00:00
|
|
|
* SetCursor (DISPLAY.102)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1999-05-08 12:40:24 +00:00
|
|
|
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
2005-07-18 15:14:56 +00:00
|
|
|
USER_Driver->pSetCursor(lpCursor);
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 19:59:40 +00:00
|
|
|
* 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
|
|
|
{
|
2005-07-18 15:14:56 +00:00
|
|
|
USER_Driver->pSetCursorPos(wAbsX, wAbsY);
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 19:59:40 +00:00
|
|
|
* CheckCursor (DISPLAY.104)
|
1998-11-08 12:24:02 +00:00
|
|
|
*/
|
1999-06-26 14:58:24 +00:00
|
|
|
VOID WINAPI DISPLAY_CheckCursor( void )
|
1998-11-08 12:24:02 +00:00
|
|
|
{
|
1999-07-04 16:02:24 +00:00
|
|
|
TRACE("stub\n" );
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|
|
|
|
|
1999-11-21 02:01:07 +00:00
|
|
|
/***********************************************************************
|
2001-07-02 19:59:40 +00:00
|
|
|
* GetDriverResourceID (DISPLAY.450)
|
1999-11-21 02:01:07 +00:00
|
|
|
*
|
|
|
|
* Used by USER to check if driver contains better version of a builtin
|
1999-12-06 01:20:00 +00:00
|
|
|
* resource than USER (yes, our DISPLAY does !).
|
1999-11-21 02:01:07 +00:00
|
|
|
* wQueriedResID is the ID USER asks about.
|
1999-12-06 01:20:00 +00:00
|
|
|
* lpsResName does often contain "OEMBIN".
|
1999-11-21 02:01:07 +00:00
|
|
|
*/
|
|
|
|
DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
|
|
|
|
{
|
|
|
|
if (wQueriedResID == 3)
|
1999-12-06 01:20:00 +00:00
|
|
|
return (DWORD)1;
|
1999-11-21 02:01:07 +00:00
|
|
|
|
|
|
|
return (DWORD)wQueriedResID;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
2001-05-16 19:52:29 +00:00
|
|
|
FIXME("stub\n");
|
1998-11-08 12:24:02 +00:00
|
|
|
}
|