Skip to content

DisplayModeDepth

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions
BlitzLLVM

DisplayModeDepth 〔BlitzLLVM〕

DisplayModeDepth:Int32 display:Int32, mode:Int32
Parameter Mode Type Default Description
display In Int32 required The display number, from 1 to CountDisplays.
mode In Int32 required The mode number, from 1 to CountDisplayModes.

Returns: The color depth, always 32, or 0 if the display or mode does not exist.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

The color depth in bits per pixel of a mode from the list of a display. This is a BlitzLLVM extension: the originals have no way to ask for more than the main display.

Differences

  • A display or mode number that does not exist gives 0 instead of stopping the program, unlike GfxModeWidth.
  • Palette and 16 bit modes are not supported, so every mode is listed with 32 bits.

Related Commands

DisplayDepth 〔BlitzLLVM〕, DisplayHeight 〔BlitzLLVM〕, DisplayModeHeight 〔BlitzLLVM〕, DisplayModeRefreshRate 〔BlitzLLVM〕, DisplayModeWidth 〔BlitzLLVM〕, DisplayName 〔BlitzLLVM〕, DisplayRefreshRate 〔BlitzLLVM〕, GfxModeDepth

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally