1998-10-24 13:08:27 +02:00
|
|
|
/*
|
|
|
|
* DISPDIB.dll
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
2008-10-18 19:23:08 +02:00
|
|
|
* Copyright 1998 Ove Kåven (with some help from Marcus Meissner)
|
1998-10-24 13:08:27 +02:00
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1998-10-24 13:08:27 +02:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
1998-10-24 13:08:27 +02:00
|
|
|
#include <string.h>
|
2000-03-24 22:13:57 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
2000-03-24 22:13:57 +01:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "wine/wingdi16.h"
|
1998-10-24 13:08:27 +02:00
|
|
|
#include "dispdib.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1998-10-24 13:08:27 +02:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1998-10-24 13:08:27 +02:00
|
|
|
|
|
|
|
/*********************************************************************
|
|
|
|
* 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(
|
2000-12-02 00:58:28 +01:00
|
|
|
LPBITMAPINFO lpbi, /* [in] DIB header with resolution and palette */
|
|
|
|
LPSTR lpBits, /* [in] Bitmap bits to show */
|
|
|
|
WORD wFlags /* [in] */
|
1998-10-24 13:08:27 +02:00
|
|
|
)
|
|
|
|
{
|
2001-12-04 20:54:44 +01:00
|
|
|
FIXME( "broken, should be rewritten using ddraw\n" );
|
1998-10-24 13:08:27 +02:00
|
|
|
return DISPLAYDIB_NOERROR;
|
|
|
|
}
|