mirror of https://github.com/status-im/nimqml.git
Added scale factor support.
This commit is contained in:
parent
936a4fa8ab
commit
eabd2456a5
|
@ -126,7 +126,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.}
|
||||
proc dos_qapplication_enable_hdpi(uiScaleFilePath: cstring) {.cdecl, dynlib: dynLibName, importc.}
|
||||
proc dos_qapplication_initialize_opengl() {.cdecl, dynlib: dynLibName, importc.}
|
||||
|
||||
# QApplication
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
proc enableHDPI*() =
|
||||
dos_qapplication_enable_hdpi()
|
||||
proc enableHDPI*(uiScaleFilePath: string) =
|
||||
dos_qapplication_enable_hdpi(uiScaleFilePath)
|
||||
|
||||
proc initializeOpenGL*() =
|
||||
dos_qapplication_initialize_opengl()
|
||||
|
|
Loading…
Reference in New Issue