The Battle for Wesnoth  1.17.0-dev
Functions
desktop::apple Namespace Reference

Functions

std::string os_version ()
 Returns a string with the running OS name and version information. More...
 
CGFloat get_scale_factor (int display_index)
 

Function Documentation

◆ get_scale_factor()

CGFloat desktop::apple::get_scale_factor ( int  display_index)

Referenced by CVideo::get_dpi().

◆ os_version()

std::string desktop::apple::os_version ( )

Returns a string with the running OS name and version information.

On Windows, this is a string we generate ourselves by processing GetVersionEx's output. On OS X and Linux, this is the output of a command provided by the OS if available; failing that (and on other Unixes as well), we use the uname system call, which is hardly ever useful.

Definition at line 217 of file version.cpp.

References _(), ERR_DU, filesystem::file_exists(), os_version(), p, and unicode_cast().

Referenced by game_config::full_build_report(), desktop::os_version(), and gui2::dialogs::game_version::pre_show().