diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-02-12 17:19:07 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-02-12 17:19:07 +0100 |
| commit | 9ddbf25809e42f2b34d1757c11e3abdf6d7577c4 (patch) | |
| tree | a66d09ced6b7141b37913c0c1aa9c1e9422983a3 /src | |
| parent | ed08faa4a80ad7dc293d247a3c32246cefd52e1a (diff) | |
Added support for High DPI Scaling for higher resolution monitors.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index c64e2d8d..935b7404 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -636,6 +636,9 @@ int runApplication(MOApplication &application, SingleInstance &instance, int main(int argc, char *argv[])
{
+ //Should allow for better scaling of ui with higher resolution displays
+ QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
if (argc >= 4) {
std::vector<std::wstring> arg;
auto args = UntouchedCommandLineArguments(2, arg);
|
