The "window_set_dpi" Function

Syntax#

window_set_dpi([dpi]);
ArgumentTypeDescription
[dpi]realOptional: New override (not base) DPI value to set

Description#

Applies the current DPI scale to the window, if DPI scaling is enabled. Can also be used to override the base DPI setting if a new DPI value is provided. If DPI scaling is disabled, base DPI will be applied instead regardless of override.

Use with caution! DPI scaling is managed by Xtend, so this function should generally not be run manually. Consider assigning a new base DPI value in xtend_config instead.

Example#

window_set_dpi();
window_set_dpi(128);