wine/dlls/user32/display.c

97 lines
2.7 KiB
C
Raw Normal View History

/*
* DISPLAY driver
*
* Copyright 1998 Ulrich Weigand
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "wine/debug.h"
1999-03-14 16:35:05 +00:00
#include "windef.h"
#include "winbase.h"
#include "user_private.h"
#include "wine/winuser16.h"
WINE_DEFAULT_DEBUG_CHANNEL(cursor);
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"
/***********************************************************************
2001-07-02 19:59:40 +00:00
* Inquire (DISPLAY.101)
*/
2002-08-28 23:38:10 +00:00
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo)
{
lpCursorInfo->wXMickeys = 1;
lpCursorInfo->wYMickeys = 1;
2002-08-28 23:38:10 +00:00
return sizeof(CURSORINFO16);
}
/***********************************************************************
2001-07-02 19:59:40 +00:00
* SetCursor (DISPLAY.102)
*/
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
{
USER_Driver->pSetCursor(lpCursor);
}
/***********************************************************************
2001-07-02 19:59:40 +00:00
* MoveCursor (DISPLAY.103)
*/
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
{
USER_Driver->pSetCursorPos(wAbsX, wAbsY);
}
/***********************************************************************
2001-07-02 19:59:40 +00:00
* CheckCursor (DISPLAY.104)
*/
VOID WINAPI DISPLAY_CheckCursor( void )
{
TRACE("stub\n" );
}
/***********************************************************************
2001-07-02 19:59:40 +00:00
* 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 )
{
FIXME("stub\n");
}