Merge pull request #31 from status-im/feat/scale-factor

Added scale factor support.
This commit is contained in:
Iuri Matias 2021-09-02 15:50:31 -04:00 committed by GitHub
commit 536401f0c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
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

View File

@ -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()