diff options
author | Marius Kintel <marius@kintel.net> | 2014-02-05 05:54:39 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-02-05 05:54:39 (GMT) |
commit | 2315524505900916011bd69667746803b702db6e (patch) | |
tree | 9012d59c286c5baaae79f7dcfacc672a3ec4b6da /src/QGLView.h | |
parent | 0f3de6ca8ab02609919fd2a98fce65c6d7b54166 (diff) |
Scale axis display on high-DPI displays
Diffstat (limited to 'src/QGLView.h')
-rw-r--r-- | src/QGLView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/QGLView.h b/src/QGLView.h index 12be085..7bd6415 100644 --- a/src/QGLView.h +++ b/src/QGLView.h @@ -40,6 +40,7 @@ public: else this->cam.projection = Camera::PERSPECTIVE; } std::string getRendererInfo() const; + float getDPI() { return this->devicePixelRatio(); } bool save(const char *filename); void resetView(); |