diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-13 02:34:10 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-13 02:34:10 +0100 |
commit | 3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807 (patch) | |
tree | 4a61f58e667900e8c47218a6a2cca4623692da3f /cocoa/plotter.m | |
parent | bfc7552d8dcc0c737c8282280c4a3f71cf58aed4 (diff) | |
download | netsurf-3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807.tar.gz netsurf-3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807.tar.bz2 |
add API to set DPI
Diffstat (limited to 'cocoa/plotter.m')
-rw-r--r-- | cocoa/plotter.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/plotter.m b/cocoa/plotter.m index 1d7fd2a8c..4f63424e1 100644 --- a/cocoa/plotter.m +++ b/cocoa/plotter.m @@ -22,10 +22,10 @@ #import "cocoa/plotter.h" #import "cocoa/bitmap.h" +#import "desktop/browser.h" #import "desktop/plotters.h" #import "desktop/plot_style.h" #import "utils/log.h" -#import "css/utils.h" static void cocoa_plot_render_path(NSBezierPath *path,const plot_style_t *pstyle); static void cocoa_plot_path_set_stroke_pattern(NSBezierPath *path,const plot_style_t *pstyle); @@ -323,7 +323,7 @@ void cocoa_update_scale_factor( void ) const CGFloat scale = [[NSScreen mainScreen] userSpaceScaleFactor]; cocoa_scale_factor = scale == 1.0 ? 1.0 : 1.0 / scale; cocoa_half_pixel = 0.5 * cocoa_scale_factor; - nscss_screen_dpi = FLTTOFIX( points_per_inch * scale ); + browser_set_dpi( points_per_inch * scale ); } static inline void cocoa_center_pixel( bool x, bool y ) |