ddraw: Destroy the swapchain in the DllMain() cleanup handler.
[wine/zf.git] / dlls / display.drv16 / display.c
blob2476b630b3dc2917fb4e039879d9275940951750
1 /*
2 * DISPLAY driver
4 * Copyright 1998 Ulrich Weigand
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.
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.
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
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include <stdarg.h>
23 #include "wine/debug.h"
24 #include "windef.h"
25 #include "winbase.h"
26 #include "wine/winuser16.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(cursor);
30 #include "pshpack1.h"
31 typedef struct tagCURSORINFO16
33 WORD wXMickeys;
34 WORD wYMickeys;
35 } CURSORINFO16, *PCURSORINFO16, *LPCURSORINFO16;
36 #include "poppack.h"
38 /***********************************************************************
39 * Inquire (DISPLAY.101)
41 WORD WINAPI Inquire16(LPCURSORINFO16 lpCursorInfo)
43 lpCursorInfo->wXMickeys = 1;
44 lpCursorInfo->wYMickeys = 1;
46 return sizeof(CURSORINFO16);
49 /***********************************************************************
50 * SetCursor (DISPLAY.102)
52 VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor )
54 FIXME("stub\n" );
57 /***********************************************************************
58 * MoveCursor (DISPLAY.103)
60 VOID WINAPI MoveCursor16( WORD wAbsX, WORD wAbsY )
62 SetCursorPos( wAbsX, wAbsY );
65 /***********************************************************************
66 * CheckCursor (DISPLAY.104)
68 VOID WINAPI CheckCursor16( void )
70 TRACE("stub\n" );
73 /***********************************************************************
74 * GetDriverResourceID (DISPLAY.450)
76 * Used by USER to check if driver contains better version of a builtin
77 * resource than USER (yes, our DISPLAY does !).
78 * wQueriedResID is the ID USER asks about.
79 * lpsResName does often contain "OEMBIN".
81 DWORD WINAPI GetDriverResourceID16( WORD wQueriedResID, LPSTR lpsResName )
83 if (wQueriedResID == 3)
84 return (DWORD)1;
86 return (DWORD)wQueriedResID;
89 /***********************************************************************
90 * UserRepaintDisable (DISPLAY.500)
92 VOID WINAPI UserRepaintDisable16( BOOL16 disable )
94 FIXME("stub\n");