summaryrefslogtreecommitdiff
path: root/navit/attr_def.h
diff options
context:
space:
mode:
authorStefan Wildemann <metalstrolch@users.noreply.github.com>2019-07-28 12:29:58 +0200
committerGitHub <noreply@github.com>2019-07-28 12:29:58 +0200
commit6bc6c0cca6c105450f7cc6f080c72d99f87c173f (patch)
treea8165965f15b9de8f38355101d6ab9717ab353f5 /navit/attr_def.h
parentb6c0c8685f802091e2c37d88960266137d0fb6f2 (diff)
downloadnavit-6bc6c0cca6c105450f7cc6f080c72d99f87c173f.tar.gz
add:graphics:dpi scaling support (#813)
This commit adds calculating a scaling factor out of the virtual_dpi assumed when the layout was created, and the real_dpi value of the hardware. It is activated if "virtual_dpi" tag is set into the "graphics" tag on navit.xml. Currently only qt5 graphics implment returning the hardware dpi. But this can be simulated and overwritten by setting "real_dpi" tag to "graphics" tag on navit.xm on all available graphics.l
Diffstat (limited to 'navit/attr_def.h')
-rw-r--r--navit/attr_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/attr_def.h b/navit/attr_def.h
index 4d859d1fa..055936b4a 100644
--- a/navit/attr_def.h
+++ b/navit/attr_def.h
@@ -200,6 +200,8 @@ ATTR(turn_around_penalty)
ATTR(turn_around_penalty2)
ATTR(autozoom_max)
ATTR(nav_status)
+ATTR(virtual_dpi)
+ATTR(real_dpi)
ATTR2(0x00027500,type_rel_abs_begin)
/* These attributes are int that can either hold relative or absolute values. See the
* documentation of ATTR_REL_RELSHIFT for details.