summaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-10 09:24:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-10 10:47:37 -0700
commitfe6237b2733d50b36f0c2d6de515b86891581dd4 (patch)
tree393d43438ef2492d363c01af8e627fc6ee92b6f8 /display.h
parentc129902793446cda9137f2b44c59d5840e4eeaec (diff)
downloadsubsurface-fe6237b2733d50b36f0c2d6de515b86891581dd4.tar.gz
Implement the get_screen_dpi function
This is sadly known to be incorrect on most systems. But it's as incorrect as it was on Gtk so should work equally well to get roughly the right sizes for printing - once we implement printing, that is :-) Also removed a qDebug that snuck in in commit 6fc4d72079dd ("Enable defautl_filename in settings"). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r--display.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/display.h b/display.h
index 8567bc955..b62ae3ba3 100644
--- a/display.h
+++ b/display.h
@@ -6,15 +6,13 @@ extern "C" {
#endif
#define SCALE_SCREEN 1.0
-#warning "PORT THE get_screen_dpi to Qt"
-#define SCALE_PRINT 1.0
-//#define SCALE_PRINT (1.0 / get_screen_dpi())
+#define SCALE_PRINT (1.0 / get_screen_dpi())
extern void repaint_dive(void);
extern void do_print(void);
// Commented out because I don't know how to get the dpi on a paint device yet.
-// extern gdouble get_screen_dpi(void);
+extern double get_screen_dpi(void);
/* Plot info with smoothing, velocity indication
* and one-, two- and three-minute minimums and maximums */