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:
Ryan Foster
2021-03-30 08:18:12 -04:00
committed by Jim
parent b496f43d45
commit 1fa45e63a3
4 changed files with 0 additions and 36 deletions

View File

@@ -221,11 +221,7 @@ static int TranslateQtMouseEventModifiers(QMouseEvent *event)
bool OBSBasicInteraction::GetSourceRelativeXY(int mouseX, int mouseY, int &relX,
int &relY)
{
#ifdef SUPPORTS_FRACTIONAL_SCALING
float pixelRatio = devicePixelRatioF();
#else
float pixelRatio = devicePixelRatio();
#endif
int mouseXscaled = (int)roundf(mouseX * pixelRatio);
int mouseYscaled = (int)roundf(mouseY * pixelRatio);