From 17398572de5b49d72aad51b39594a1e0ee6bddb6 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 23 Jun 2020 15:24:51 -0400 Subject: [PATCH] Enable HDPI --- src/nimqml/private/dotherside.nim | 1 + src/nimqml/private/qcoreapplication.nim | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/nimqml/private/dotherside.nim b/src/nimqml/private/dotherside.nim index 517aca0..b2569e0 100644 --- a/src/nimqml/private/dotherside.nim +++ b/src/nimqml/private/dotherside.nim @@ -123,6 +123,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.} # QCoreApplication proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.} +proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.} # QApplication proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.} diff --git a/src/nimqml/private/qcoreapplication.nim b/src/nimqml/private/qcoreapplication.nim index 1eadc75..003531d 100644 --- a/src/nimqml/private/qcoreapplication.nim +++ b/src/nimqml/private/qcoreapplication.nim @@ -1,3 +1,6 @@ +proc enableHDPI*() = + dos_qapplication_enable_hdpi() + proc applicationDirPath*(app: QCoreApplication): string = let str = dos_qcoreapplication_application_dir_path() result = $str