Adds high dpi scaling (#616)

This commit is contained in:
Atul R 2020-06-28 17:31:55 +02:00 committed by GitHub
parent c54826de6a
commit ca792e2c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ int QtRunLoopWrapper() {
void integrate() {
// Bootstrap Qt
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
app = new NApplication(qode::qode_argc, qode::qode_argv);
qode::InjectCustomRunLoop(&QtRunLoopWrapper);
// Other init settings