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
|
# 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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue