Skip to content

Commit

Permalink
Remove unneeded check for Qt::AA_DisableHighDpiScaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Nov 5, 2021
1 parent 4907cf3 commit abfd578
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/ui_utility.cpp
Expand Up @@ -9,7 +9,6 @@
#include "ui/platform/ui_platform_utility.h"
#include "ui/style/style_core.h"

#include <QtCore/QCoreApplication>
#include <QtWidgets/QApplication>
#include <QtGui/QWindow>
#include <QtGui/QtEvents>
Expand Down Expand Up @@ -214,9 +213,7 @@ bool IsContentVisible(
}

void DisableCustomScaling() {
if (QCoreApplication::testAttribute(Qt::AA_DisableHighDpiScaling)) {
QHighDpiScaling::setGlobalFactor(1);
}
QHighDpiScaling::setGlobalFactor(1);
}

int WheelDirection(not_null<QWheelEvent*> e) {
Expand Down

0 comments on commit abfd578

Please sign in to comment.