mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-09 00:58:48 -04:00
Revert "UI: Only apply new scaling behavior on newer installs"
This reverts commit 4e5f20dcbe.
This originally was added because of a faulty assumption that it would
change defaults, but defaults were apparently broken from 26.0.2 -> 26.1
because primaryScreen->size() changed its behavior, so the original code
technically fixed the original behavior.
This commit is contained in:
@@ -1218,19 +1218,13 @@ bool OBSBasic::InitBasicConfigDefaults()
|
||||
uint32_t cx = primaryScreen->size().width();
|
||||
uint32_t cy = primaryScreen->size().height();
|
||||
|
||||
bool oldScaleBehavior = config_get_bool(App()->GlobalConfig(),
|
||||
"General", "Pre26.2Defaults");
|
||||
|
||||
/* after version 26.2, apply scaling to cx/cy */
|
||||
if (!oldScaleBehavior) {
|
||||
#ifdef SUPPORTS_FRACTIONAL_SCALING
|
||||
cx *= devicePixelRatioF();
|
||||
cy *= devicePixelRatioF();
|
||||
cx *= devicePixelRatioF();
|
||||
cy *= devicePixelRatioF();
|
||||
#elif
|
||||
cx *= devicePixelRatio();
|
||||
cy *= devicePixelRatio();
|
||||
cx *= devicePixelRatio();
|
||||
cy *= devicePixelRatio();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool oldResolutionDefaults = config_get_bool(
|
||||
App()->GlobalConfig(), "General", "Pre19Defaults");
|
||||
|
||||
Reference in New Issue
Block a user