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