Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DISPLAY driver |
| 3 | * |
| 4 | * Copyright 1998 Ulrich Weigand |
| 5 | * |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 6 | * 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 Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 21 | #include <stdarg.h> |
| 22 | |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 23 | #include "wine/debug.h" |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 24 | #include "windef.h" |
Alexandre Julliard | e37c6e1 | 2003-09-05 23:08:26 +0000 | [diff] [blame] | 25 | #include "winbase.h" |
Alexandre Julliard | 6a78c16 | 2004-12-08 18:06:14 +0000 | [diff] [blame] | 26 | #include "user_private.h" |
Patrik Stridvall | b87fe2e | 1999-04-01 08:16:08 +0000 | [diff] [blame] | 27 | #include "wine/winuser16.h" |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 28 | |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 29 | WINE_DEFAULT_DEBUG_CHANNEL(cursor); |
Patrik Stridvall | b4b9fae | 1999-04-19 14:56:29 +0000 | [diff] [blame] | 30 | |
Alexandre Julliard | 2d8cf50 | 2000-06-03 04:20:19 +0000 | [diff] [blame] | 31 | #include "pshpack1.h" |
Alexandre Julliard | fc92ecb | 2004-11-19 18:26:20 +0000 | [diff] [blame] | 32 | typedef struct tagCURSORINFO16 |
Alexandre Julliard | 2d8cf50 | 2000-06-03 04:20:19 +0000 | [diff] [blame] | 33 | { |
| 34 | WORD wXMickeys; |
| 35 | WORD wYMickeys; |
Per Nystrom | e765bc1 | 2002-08-28 23:38:10 +0000 | [diff] [blame] | 36 | } CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16; |
Alexandre Julliard | 2d8cf50 | 2000-06-03 04:20:19 +0000 | [diff] [blame] | 37 | #include "poppack.h" |
| 38 | |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 39 | /*********************************************************************** |
Patrik Stridvall | 01d5e5b | 2001-07-02 19:59:40 +0000 | [diff] [blame] | 40 | * Inquire (DISPLAY.101) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 41 | */ |
Per Nystrom | e765bc1 | 2002-08-28 23:38:10 +0000 | [diff] [blame] | 42 | WORD WINAPI DISPLAY_Inquire(LPCURSORINFO16 lpCursorInfo) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 43 | { |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 44 | lpCursorInfo->wXMickeys = 1; |
| 45 | lpCursorInfo->wYMickeys = 1; |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 46 | |
Per Nystrom | e765bc1 | 2002-08-28 23:38:10 +0000 | [diff] [blame] | 47 | return sizeof(CURSORINFO16); |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | /*********************************************************************** |
Patrik Stridvall | 01d5e5b | 2001-07-02 19:59:40 +0000 | [diff] [blame] | 51 | * SetCursor (DISPLAY.102) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 52 | */ |
Michael Veksler | 9d14a00 | 1999-05-08 12:40:24 +0000 | [diff] [blame] | 53 | VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor ) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 54 | { |
Alexandre Julliard | 15ec968 | 2005-07-18 15:14:56 +0000 | [diff] [blame] | 55 | USER_Driver->pSetCursor(lpCursor); |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 56 | } |
| 57 | |
| 58 | /*********************************************************************** |
Patrik Stridvall | 01d5e5b | 2001-07-02 19:59:40 +0000 | [diff] [blame] | 59 | * MoveCursor (DISPLAY.103) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 60 | */ |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 61 | VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY ) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 62 | { |
Alexandre Julliard | 15ec968 | 2005-07-18 15:14:56 +0000 | [diff] [blame] | 63 | USER_Driver->pSetCursorPos(wAbsX, wAbsY); |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | /*********************************************************************** |
Patrik Stridvall | 01d5e5b | 2001-07-02 19:59:40 +0000 | [diff] [blame] | 67 | * CheckCursor (DISPLAY.104) |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 68 | */ |
Patrik Stridvall | 1ed4ecf | 1999-06-26 14:58:24 +0000 | [diff] [blame] | 69 | VOID WINAPI DISPLAY_CheckCursor( void ) |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 70 | { |
Alexandre Julliard | 359f497e | 1999-07-04 16:02:24 +0000 | [diff] [blame] | 71 | TRACE("stub\n" ); |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | /*********************************************************************** |
Patrik Stridvall | 01d5e5b | 2001-07-02 19:59:40 +0000 | [diff] [blame] | 75 | * GetDriverResourceID (DISPLAY.450) |
Andreas Mohr | 399e41f | 1999-11-21 02:01:07 +0000 | [diff] [blame] | 76 | * |
| 77 | * Used by USER to check if driver contains better version of a builtin |
Andreas Mohr | a2da868 | 1999-12-06 01:20:00 +0000 | [diff] [blame] | 78 | * resource than USER (yes, our DISPLAY does !). |
Andreas Mohr | 399e41f | 1999-11-21 02:01:07 +0000 | [diff] [blame] | 79 | * wQueriedResID is the ID USER asks about. |
Andreas Mohr | a2da868 | 1999-12-06 01:20:00 +0000 | [diff] [blame] | 80 | * lpsResName does often contain "OEMBIN". |
Andreas Mohr | 399e41f | 1999-11-21 02:01:07 +0000 | [diff] [blame] | 81 | */ |
| 82 | DWORD WINAPI DISPLAY_GetDriverResourceID( WORD wQueriedResID, LPSTR lpsResName ) |
| 83 | { |
Andreas Mohr | 399e41f | 1999-11-21 02:01:07 +0000 | [diff] [blame] | 84 | if (wQueriedResID == 3) |
Andreas Mohr | a2da868 | 1999-12-06 01:20:00 +0000 | [diff] [blame] | 85 | return (DWORD)1; |
Andreas Mohr | 399e41f | 1999-11-21 02:01:07 +0000 | [diff] [blame] | 86 | |
| 87 | return (DWORD)wQueriedResID; |
| 88 | } |
| 89 | |
| 90 | /*********************************************************************** |
Ulrich Weigand | 431d1a0 | 1998-11-14 18:57:47 +0000 | [diff] [blame] | 91 | * UserRepaintDisable (DISPLAY.500) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 92 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 93 | VOID WINAPI UserRepaintDisable16( BOOL16 disable ) |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 94 | { |
Alexandre Julliard | 4323004 | 2001-05-16 19:52:29 +0000 | [diff] [blame] | 95 | FIXME("stub\n"); |
Ulrich Weigand | a6663e8 | 1998-11-08 12:24:02 +0000 | [diff] [blame] | 96 | } |