Qt: Default MacOS fractional window scale to disabled

pull/3687/head v0.1-10693
Stenzek 8 months ago
parent 66bfc4b164
commit fa84d9e893
No known key found for this signature in database

@ -101,7 +101,7 @@ InterfaceSettingsWidget::InterfaceSettingsWidget(SettingsWindow* dialog, QWidget
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.useFractionalWindowScale, "Main", "UseFractionalWindowScale", SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.useFractionalWindowScale, "Main", "UseFractionalWindowScale",
true); false);
#else #else
QtUtils::SafeDeleteWidget(m_ui.useFractionalWindowScale); QtUtils::SafeDeleteWidget(m_ui.useFractionalWindowScale);
#endif #endif

@ -628,8 +628,10 @@ void CoreThread::setDefaultSettings(bool host, bool system, bool controller)
void Host::SetDefaultSettings(SettingsInterface& si) void Host::SetDefaultSettings(SettingsInterface& si)
{ {
#ifdef _WIN32 #if defined(_WIN32)
si.SetBoolValue("Main", "DisableWindowRoundedCorners", false); si.SetBoolValue("Main", "DisableWindowRoundedCorners", false);
#elif defined(__APPLE__)
si.SetBoolValue("Main", "UseFractionalWindowScale", false);
#endif #endif
si.SetBoolValue("Main", "DisableWindowResize", false); si.SetBoolValue("Main", "DisableWindowResize", false);

@ -164,7 +164,7 @@ void QtUtils::UpdateSurfaceSize(QWidget* widget, RenderAPI render_api, WindowInf
// Only use "real" fractional window scale for Metal renderer. // Only use "real" fractional window scale for Metal renderer.
// Vulkan returns suboptimal constantly, triggering swap chain recreations. // Vulkan returns suboptimal constantly, triggering swap chain recreations.
if (render_api == RenderAPI::Metal && Core::GetBaseBoolSettingValue("Main", "UseFractionalWindowScale", true)) if (render_api == RenderAPI::Metal && Core::GetBaseBoolSettingValue("Main", "UseFractionalWindowScale", false))
{ {
if (const std::optional<double> real_device_pixel_ratio = CocoaTools::GetViewRealScalingFactor(wi->window_handle)) if (const std::optional<double> real_device_pixel_ratio = CocoaTools::GetViewRealScalingFactor(wi->window_handle))
{ {

Loading…
Cancel
Save