aboutsummaryrefslogtreecommitdiff
path: root/subprojects/nk_pugl/example
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-04-13 23:51:00 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-04-13 23:51:00 +0200
commit31c2497bc6b54edb486877742104602c090bdb4a (patch)
tree398f86619668cd9479ff0b06558a6fa764bb2229 /subprojects/nk_pugl/example
parenta4cec317cdf7f2a84e28c7b285add6f9ae180bfb (diff)
parentee3ba7392c930367fd4e70d0af95d2fbb9b88b2a (diff)
downloadmidi_matrix.lv2-31c2497bc6b54edb486877742104602c090bdb4a.tar.xz
Merge commit 'ee3ba7392c930367fd4e70d0af95d2fbb9b88b2a'
Diffstat (limited to 'subprojects/nk_pugl/example')
-rw-r--r--subprojects/nk_pugl/example/example.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/subprojects/nk_pugl/example/example.c b/subprojects/nk_pugl/example/example.c
index 1c505da..c55a2ca 100644
--- a/subprojects/nk_pugl/example/example.c
+++ b/subprojects/nk_pugl/example/example.c
@@ -53,8 +53,10 @@ main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
static nk_pugl_window_t win;
nk_pugl_config_t *cfg = &win.cfg;
- cfg->width = 1280;
- cfg->height = 720;
+ const float scale = nk_pugl_get_scale();
+
+ cfg->width = 1280 * scale;
+ cfg->height = 720 * scale;
cfg->resizable = true;
cfg->parent = 0;
cfg->threads = false;
@@ -64,7 +66,7 @@ main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
cfg->expose = _expose;
cfg->data = NULL;
cfg->font.face = "./Cousine-Regular.ttf";
- cfg->font.size = 13;
+ cfg->font.size = 13 * scale;
signal(SIGTERM, _sigint);
signal(SIGINT, _sigint);