mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-19 19:58:36 -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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user