General Terminal

GtGetDesktopDepth

Get the desktop color depth

Syntax

Signature
int GtGetDesktopDepth( void );

Arguments

No arguments.

Return value

The desktop color depth in bits per pixel.

Description

Use this for desktop diagnostics. The terminal render target can use its own color depth, reported by GtGetScreenDepth().

Example

gtgetdesktopdepth.c
#include "xdev-wtui.h"

#include <stdio.h>

int main( void )
{
   printf( "Desktop depth (bits per pixel): %d\n", GtGetDesktopDepth() );

   return 0;
}

See also