blob: 4288738188853c99d18e2726baad8988a378c99d [file] [log] [blame]
Ulrich Weiganda6663e81998-11-08 12:24:02 +00001/*
2 * DISPLAY driver
3 *
4 * Copyright 1998 Ulrich Weigand
5 *
Alexandre Julliard0799c1a2002-03-09 23:29:33 +00006 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
Jonathan Ernst360a3f92006-05-18 14:49:52 +020018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Ulrich Weiganda6663e81998-11-08 12:24:02 +000019 */
20
Alexandre Julliarde37c6e12003-09-05 23:08:26 +000021#include <stdarg.h>
22
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000023#include "wine/debug.h"
Jim Aston2e1cafa1999-03-14 16:35:05 +000024#include "windef.h"
Alexandre Julliarde37c6e12003-09-05 23:08:26 +000025#include "winbase.h"
Alexandre Julliard6a78c162004-12-08 18:06:14 +000026#include "user_private.h"
Patrik Stridvallb87fe2e1999-04-01 08:16:08 +000027#include "wine/winuser16.h"
Ulrich Weiganda6663e81998-11-08 12:24:02 +000028
Alexandre Julliard0799c1a2002-03-09 23:29:33 +000029WINE_DEFAULT_DEBUG_CHANNEL(cursor);
Patrik Stridvallb4b9fae1999-04-19 14:56:29 +000030
Alexandre Julliard2d8cf502000-06-03 04:20:19 +000031#include "pshpack1.h"
Alexandre Julliardfc92ecb2004-11-19 18:26:20 +000032typedef struct tagCURSORINFO16
Alexandre Julliard2d8cf502000-06-03 04:20:19 +000033{
34 WORD wXMickeys;
35 WORD wYMickeys;
Per Nystrome765bc12002-08-28 23:38:10 +000036} CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
Alexandre Julliard2d8cf502000-06-03 04:20:19 +000037#include "poppack.h"
38
Ulrich Weiganda6663e81998-11-08 12:24:02 +000039/***********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000040 * Inquire (DISPLAY.101)
Ulrich Weiganda6663e81998-11-08 12:24:02 +000041 */
Per Nystrome765bc12002-08-28 23:38:10 +000042WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo)
Ulrich Weiganda6663e81998-11-08 12:24:02 +000043{
Ulrich Weigand431d1a01998-11-14 18:57:47 +000044 lpCursorInfo->wXMickeys = 1;
45 lpCursorInfo->wYMickeys = 1;
Ulrich Weiganda6663e81998-11-08 12:24:02 +000046
Per Nystrome765bc12002-08-28 23:38:10 +000047 return sizeof(CURSORINFO16);
Ulrich Weiganda6663e81998-11-08 12:24:02 +000048}
49
50/***********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000051 * SetCursor (DISPLAY.102)
Ulrich Weiganda6663e81998-11-08 12:24:02 +000052 */
Michael Veksler9d14a001999-05-08 12:40:24 +000053VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
Ulrich Weiganda6663e81998-11-08 12:24:02 +000054{
Alexandre Julliard15ec9682005-07-18 15:14:56 +000055 USER_Driver->pSetCursor(lpCursor);
Ulrich Weiganda6663e81998-11-08 12:24:02 +000056}
57
58/***********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000059 * MoveCursor (DISPLAY.103)
Ulrich Weiganda6663e81998-11-08 12:24:02 +000060 */
Ulrich Weigand431d1a01998-11-14 18:57:47 +000061VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
Ulrich Weiganda6663e81998-11-08 12:24:02 +000062{
Alexandre Julliard15ec9682005-07-18 15:14:56 +000063 USER_Driver->pSetCursorPos(wAbsX, wAbsY);
Ulrich Weiganda6663e81998-11-08 12:24:02 +000064}
65
66/***********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000067 * CheckCursor (DISPLAY.104)
Ulrich Weigand431d1a01998-11-14 18:57:47 +000068 */
Patrik Stridvall1ed4ecf1999-06-26 14:58:24 +000069VOID WINAPI DISPLAY_CheckCursor( void )
Ulrich Weigand431d1a01998-11-14 18:57:47 +000070{
Alexandre Julliard359f497e1999-07-04 16:02:24 +000071 TRACE("stub\n" );
Ulrich Weigand431d1a01998-11-14 18:57:47 +000072}
73
74/***********************************************************************
Patrik Stridvall01d5e5b2001-07-02 19:59:40 +000075 * GetDriverResourceID (DISPLAY.450)
Andreas Mohr399e41f1999-11-21 02:01:07 +000076 *
77 * Used by USER to check if driver contains better version of a builtin
Andreas Mohra2da8681999-12-06 01:20:00 +000078 * resource than USER (yes, our DISPLAY does !).
Andreas Mohr399e41f1999-11-21 02:01:07 +000079 * wQueriedResID is the ID USER asks about.
Andreas Mohra2da8681999-12-06 01:20:00 +000080 * lpsResName does often contain "OEMBIN".
Andreas Mohr399e41f1999-11-21 02:01:07 +000081 */
82DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName )
83{
Andreas Mohr399e41f1999-11-21 02:01:07 +000084 if (wQueriedResID == 3)
Andreas Mohra2da8681999-12-06 01:20:00 +000085 return (DWORD)1;
Andreas Mohr399e41f1999-11-21 02:01:07 +000086
87 return (DWORD)wQueriedResID;
88}
89
90/***********************************************************************
Ulrich Weigand431d1a01998-11-14 18:57:47 +000091 * UserRepaintDisable (DISPLAY.500)
Ulrich Weiganda6663e81998-11-08 12:24:02 +000092 */
Alexandre Julliarda3960291999-02-26 11:11:13 +000093VOID WINAPI UserRepaintDisable16( BOOL16 disable )
Ulrich Weiganda6663e81998-11-08 12:24:02 +000094{
Alexandre Julliard43230042001-05-16 19:52:29 +000095 FIXME("stub\n");
Ulrich Weiganda6663e81998-11-08 12:24:02 +000096}