Added functions for "high DPI" support.