Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

Ultra High Definition Displays support

 

Function List

 

void SetUHDMode(bool b)

Sets the UHD mode.

 


 

bool IsUHDMode()

Returns true if UHD mode is active.

 


 

void SyncUHDMode()

Sets the UHD mode if current GUI font is bigger than 22 pixels.

 


 

Image DPI(const Image& img)

Eventually upscales or downscales img based on its UHD flag and current mode. Standard images are upscaled 2x in UHD mode, UHD images are downscaled 2x in standard mode.

 


 

Image DPI(const Image& img, int expected)

Upscales img 2x if its height is less than or equal to expected and UHD mode is active.

 


 

int DPI(int a)

Returns 2 * a if UHD is active and a otherwise.

 


 

Size DPI(Size sz)

Returns 2 * sz if UHD is active and sz otherwise.

 

 

Do you want to contribute?