General Terminal

GtGetDisplayScale

Get the display scale

Syntax

Signature
double GtGetDisplayScale( void );

Arguments

No arguments.

Return value

The display scaling factor reported by the driver.

Description

Reports the scale of the display associated with the window. For example, on WVT, 144 DPI gives a scale of 1.5.

Example

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

#include <stdio.h>

int main( void )
{
   printf( "Display scale: %.2f\n", GtGetDisplayScale() );

   return 0;
}

See also