diff options
| author | Simon Krauter <simon.krauter@dbaudio.com> | 2019-07-26 10:27:00 +0200 |
|---|---|---|
| committer | Simon Krauter <simon.krauter@dbaudio.com> | 2019-07-26 10:27:00 +0200 |
| commit | 6a39cee5037f0ca7ceaea499967efa456fb8f4b1 (patch) | |
| tree | da1a2da4c19545c9328a2fabcf5b84a5157831c4 /examples/example_01_basic_app.nim | |
| parent | bb09bfa401fd8bf435ebbde844a3ba765b153a05 (diff) | |
| download | NiGui-6a39cee5037f0ca7ceaea499967efa456fb8f4b1.tar.gz NiGui-6a39cee5037f0ca7ceaea499967efa456fb8f4b1.zip | |
Implemented High-DPI support for Windows.
Applications should use ``scaleToDpi()`` to convert pixel numbers from 96 DPI to system DPI.
Diffstat (limited to 'examples/example_01_basic_app.nim')
| -rwxr-xr-x | examples/example_01_basic_app.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example_01_basic_app.nim b/examples/example_01_basic_app.nim index 97109c2..0e8e135 100755 --- a/examples/example_01_basic_app.nim +++ b/examples/example_01_basic_app.nim @@ -13,8 +13,8 @@ var window = newWindow("NiGui Example") # A window can contain only one control.
# A container can contain multiple controls.
-window.width = 600
-window.height = 400
+window.width = 600.scaleToDpi
+window.height = 400.scaleToDpi
# Set the size of the window
# window.iconPath = "example_01_basic_app.png"
|
