Skip to content

Commit

Permalink
fix: move setHighDpiScaleFactorRoundingPolicy out of the check of QT_…
Browse files Browse the repository at this point in the history
…ENABLE_HIGHDPI_SCALING
  • Loading branch information
HanatoK committed Jan 13, 2025
1 parent f3ea6fb commit 9c0a93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ int main( int argc, char ** argv )
if (!qEnvironmentVariableIsSet("QT_ENABLE_HIGHDPI_SCALING") ||
qEnvironmentVariableIsEmpty("QT_ENABLE_HIGHDPI_SCALING")) {
qputenv( "QT_ENABLE_HIGHDPI_SCALING", "1" );
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );
}
QApplication::setHighDpiScaleFactorRoundingPolicy( Qt::HighDpiScaleFactorRoundingPolicy::PassThrough );

QHotkeyApplication app( "GoldenDict-ng", argc, argv );

Expand Down

0 comments on commit 9c0a93a

Please sign in to comment.