Method

GdkScreenget_monitor_scale_factor

deprecated: 3.22 since: 3.10

Declaration [src]

gint
gdk_screen_get_monitor_scale_factor (
  GdkScreen* screen,
  gint monitor_num
)

Description [src]

Returns the internal scale factor that maps from monitor coordinates to the actual device pixels. On traditional systems this is 1, but on very high density outputs this can be a higher value (often 2).

This can be used if you want to create pixel based data for a particular monitor, but most of the time you’re drawing to a window where it is better to use gdk_window_get_scale_factor() instead.

Available since: 3.10

Deprecated since: 3.22

Use gdk_monitor_get_scale_factor() instead.

Parameters

monitor_num

Type: gint

Number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)

Return value

Type: gint

The scale factor.