Enable HDPI

This commit is contained in:
Richard Ramos 2020-06-23 15:24:51 -04:00
parent 49d1a72ef7
commit 17398572de
No known key found for this signature in database
GPG Key ID: 80D4B01265FDFE8F
2 changed files with 4 additions and 0 deletions

View File

@ -123,6 +123,7 @@ proc dos_chararray_delete(str: cstring) {.cdecl, dynlib: dynLibName, importc.}
# QCoreApplication # QCoreApplication
proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.} proc dos_qcoreapplication_application_dir_path(): cstring {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_enable_hdpi() {.cdecl, dynlib: dynLibName, importc.}
# QApplication # QApplication
proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.} proc dos_qapplication_create() {.cdecl, dynlib: dynLibName, importc.}

View File

@ -1,3 +1,6 @@
proc enableHDPI*() =
dos_qapplication_enable_hdpi()
proc applicationDirPath*(app: QCoreApplication): string = proc applicationDirPath*(app: QCoreApplication): string =
let str = dos_qcoreapplication_application_dir_path() let str = dos_qcoreapplication_application_dir_path()
result = $str result = $str