obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
786 stars 226 forks source link

Remove fractional scaling ifdefs #273

Closed RytoEX closed 3 years ago

RytoEX commented 3 years ago

Description

Remove ifdefs for fractional scaling support (Qt 5.6+).

Motivation and Context

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 and simplify the code.

@WizardCM Wanted me to check what Qt versions FreeBSD and Arch currently offer, and they both offer Qt 5.15.2. Xenial (Ubuntu 16.04) still has Qt 5.5, but we no longer officially support that platform, and its End of Standard Support is April 2021, so I don't think we need to worry about it.

How Has This Been Tested?

Compiled and ran OBS and obs-browser on Windows 10 64-bit with these changes. I verified that browser docks behave the same in OBS Studio 26.1.1 and after this patch.

Types of changes

Checklist: