Added scale factor support.

This commit is contained in:
Andrei Smirnov 2021-09-02 09:24:43 +03:00
parent 936a4fa8ab
commit eabd2456a5
2 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,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.} proc dos_qapplication_enable_hdpi(uiScaleFilePath: cstring) {.cdecl, dynlib: dynLibName, importc.}
proc dos_qapplication_initialize_opengl() {.cdecl, dynlib: dynLibName, importc.} proc dos_qapplication_initialize_opengl() {.cdecl, dynlib: dynLibName, importc.}
# QApplication # QApplication

View File

@ -1,5 +1,5 @@
proc enableHDPI*() = proc enableHDPI*(uiScaleFilePath: string) =
dos_qapplication_enable_hdpi() dos_qapplication_enable_hdpi(uiScaleFilePath)
proc initializeOpenGL*() = proc initializeOpenGL*() =
dos_qapplication_initialize_opengl() dos_qapplication_initialize_opengl()