mirror of https://github.com/status-im/nimqml.git
Merge pull request #31 from status-im/feat/scale-factor
Added scale factor support.
This commit is contained in:
commit
536401f0c1
|
@ -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