---
name: "DisplayDib"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DisplayDib"
---

# DisplayDib(3w)

## NAME

**DisplayDib** (DISPDIB.1)

## SYNOPSIS

WORD DisplayDib\
  (\
   LPBITMAPINFO *lpbi*,\
   LPSTR        *lpBits*,\
   WORD         *wFlags*\
  )

## PARAMS

*lpbi* **\[In\]**  **DIB** header with resolution and palette.

*lpBits* **\[In\]**  Bitmap bits to show.

**\[In\]**  **.**

## DESCRIPTION

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.

## IMPLEMENTATION

Declared in **"dispdib.h"**.

Implemented in **"dlls/dispdib.dll16/dispdib.c"**.

Debug channel **"ddraw"**.
