mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-26 23:29:23 -05:00
UI: Remove fractional scaling ifdefs
Among the systems we officially support, the oldest Qt version is Qt 5.9 on Ubuntu 18.04. Fractional scaling is supported in Qt 5.6 and newer. We should be able to safely remove these ifdefs.
This commit is contained in:
@@ -1279,13 +1279,8 @@ bool OBSBasic::InitBasicConfigDefaults()
|
||||
uint32_t cx = primaryScreen->size().width();
|
||||
uint32_t cy = primaryScreen->size().height();
|
||||
|
||||
#ifdef SUPPORTS_FRACTIONAL_SCALING
|
||||
cx *= devicePixelRatioF();
|
||||
cy *= devicePixelRatioF();
|
||||
#elif
|
||||
cx *= devicePixelRatio();
|
||||
cy *= devicePixelRatio();
|
||||
#endif
|
||||
|
||||
bool oldResolutionDefaults = config_get_bool(
|
||||
App()->GlobalConfig(), "General", "Pre19Defaults");
|
||||
|
||||
Reference in New Issue
Block a user