dispdib.c 2.25 KB
Newer Older
Ove Kaaven's avatar
Ove Kaaven committed
1 2
/*
 * DISPDIB.dll
3
 *
4
 * Copyright 1998 Ove Kåven (with some help from Marcus Meissner)
Ove Kaaven's avatar
Ove Kaaven committed
5
 *
6 7 8 9 10 11 12 13 14 15 16 17
 * 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
18
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Ove Kaaven's avatar
Ove Kaaven committed
19 20
 */

21
#include <stdarg.h>
Ove Kaaven's avatar
Ove Kaaven committed
22
#include <string.h>
23
#include "windef.h"
24
#include "winbase.h"
25 26
#include "wingdi.h"
#include "wine/wingdi16.h"
Ove Kaaven's avatar
Ove Kaaven committed
27
#include "dispdib.h"
28
#include "wine/debug.h"
Ove Kaaven's avatar
Ove Kaaven committed
29

30
WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
31

Ove Kaaven's avatar
Ove Kaaven committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61

/*********************************************************************
 *	DisplayDib	(DISPDIB.1)
 *
 *  Disables GDI and takes over the VGA screen to show DIBs in full screen.
 *
 * FLAGS
 *
 *  DISPLAYDIB_NOPALETTE: don't change palette
 *  DISPLAYDIB_NOCENTER: don't center bitmap
 *  DISPLAYDIB_NOWAIT: don't wait (for keypress) before returning
 *  DISPLAYDIB_BEGIN: start of multiple calls (does not restore the screen)
 *  DISPLAYDIB_END: end of multiple calls (restores the screen)
 *  DISPLAYDIB_MODE_DEFAULT: default display mode
 *  DISPLAYDIB_MODE_320x200x8: Standard VGA 320x200 256 colors
 *  DISPLAYDIB_MODE_320x240x8: Tweaked VGA 320x240 256 colors
 *
 * RETURNS
 *
 *  DISPLAYDIB_NOERROR: success
 *  DISPLAYDIB_NOTSUPPORTED: function not supported
 *  DISPLAYDIB_INVALIDDIB: null or invalid DIB header
 *  DISPLAYDIB_INVALIDFORMAT: invalid DIB format
 *  DISPLAYDIB_INVALIDTASK: not called from current task
 *
 * BUGS
 *
 *  Waiting for keypresses is not implemented.
 */
WORD WINAPI DisplayDib(
62 63 64
		LPBITMAPINFO lpbi, /* [in] DIB header with resolution and palette */
		LPSTR lpBits,      /* [in] Bitmap bits to show */
		WORD wFlags        /* [in] */
Ove Kaaven's avatar
Ove Kaaven committed
65 66
	)
{
67
    FIXME( "broken, should be rewritten using ddraw\n" );
Ove Kaaven's avatar
Ove Kaaven committed
68 69
    return DISPLAYDIB_NOERROR;
}