wine/dlls/dispdib.dll16/dispdib.c

70 lines
2.3 KiB
C
Raw Normal View History

1998-10-24 11:08:27 +00:00
/*
* DISPDIB.dll
2002-05-31 23:06:46 +00:00
*
* Copyright 1998 Ove Kåven (with some help from Marcus Meissner)
1998-10-24 11:08:27 +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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
1998-10-24 11:08:27 +00:00
*/
#include <stdarg.h>
1998-10-24 11:08:27 +00:00
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "wine/wingdi16.h"
1998-10-24 11:08:27 +00:00
#include "dispdib.h"
#include "wine/debug.h"
1998-10-24 11:08:27 +00:00
WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
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(
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
)
{
FIXME( "broken, should be rewritten using ddraw\n" );
1998-10-24 11:08:27 +00:00
return DISPLAYDIB_NOERROR;
}