cf_app_get_display_scale¶
Category: app
GitHub: cute_app.h
Returns the OS's suggested UI scale for the window's current display, e.g. 1.5f on a Windows desktop at 150%.
Remarks¶
This is a hint about how large the user would like UI to appear. It is informational only: CF never applies it. On devices that cluster pixels into points (Apple Retina, iOS) it equals cf_app_get_pixel_scale, which CF does honor automatically. On Windows/Linux desktops a pixel stays a pixel regardless of this value; honor it yourself (e.g. by picking a larger window size or UI scale at startup) if your app should follow the OS setting.
Related Pages¶
cf_app_set_size
cf_app_get_position
cf_app_set_position
cf_app_get_width
cf_app_get_height
cf_app_display_scale_was_changed