mscoree: COM cleanup in metahost.c.
[wine.git] / dlls / dispdib.dll16 / dispdib.c
blobcc28547a4b6c95c24b77f81ee79d52e00d4c9b12
1 /*
2 * DISPDIB.dll
4 * Copyright 1998 Ove Kåven (with some help from Marcus Meissner)
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>
22 #include <string.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wingdi.h"
26 #include "wine/wingdi16.h"
27 #include "dispdib.h"
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
33 /*********************************************************************
34 * DisplayDib (DISPDIB.1)
36 * Disables GDI and takes over the VGA screen to show DIBs in full screen.
38 * FLAGS
40 * DISPLAYDIB_NOPALETTE: don't change palette
41 * DISPLAYDIB_NOCENTER: don't center bitmap
42 * DISPLAYDIB_NOWAIT: don't wait (for keypress) before returning
43 * DISPLAYDIB_BEGIN: start of multiple calls (does not restore the screen)
44 * DISPLAYDIB_END: end of multiple calls (restores the screen)
45 * DISPLAYDIB_MODE_DEFAULT: default display mode
46 * DISPLAYDIB_MODE_320x200x8: Standard VGA 320x200 256 colors
47 * DISPLAYDIB_MODE_320x240x8: Tweaked VGA 320x240 256 colors
49 * RETURNS
51 * DISPLAYDIB_NOERROR: success
52 * DISPLAYDIB_NOTSUPPORTED: function not supported
53 * DISPLAYDIB_INVALIDDIB: null or invalid DIB header
54 * DISPLAYDIB_INVALIDFORMAT: invalid DIB format
55 * DISPLAYDIB_INVALIDTASK: not called from current task
57 * BUGS
59 * Waiting for keypresses is not implemented.
61 WORD WINAPI DisplayDib(
62 LPBITMAPINFO lpbi, /* [in] DIB header with resolution and palette */
63 LPSTR lpBits, /* [in] Bitmap bits to show */
64 WORD wFlags /* [in] */
67 FIXME( "broken, should be rewritten using ddraw\n" );
68 return DISPLAYDIB_NOERROR;