From 3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Oct 2014 02:34:10 +0100 Subject: add API to set DPI --- framebuffer/font_freetype.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framebuffer') diff --git a/framebuffer/font_freetype.c b/framebuffer/font_freetype.c index 4381db62a..eaaf2f099 100644 --- a/framebuffer/font_freetype.c +++ b/framebuffer/font_freetype.c @@ -27,10 +27,9 @@ #include "utils/utf8.h" #include "utils/log.h" #include "utils/nsoption.h" -#include "css/css.h" -#include "css/utils.h" #include "render/font.h" #include "desktop/gui.h" +#include "desktop/browser.h" #include "framebuffer/gui.h" #include "framebuffer/font.h" @@ -378,7 +377,7 @@ static void fb_fill_scalar(const plot_font_style_t *fstyle, FTC_Scaler srec) srec->width = srec->height = (fstyle->size * 64) / FONT_SIZE_SCALE; srec->pixel = 0; - srec->x_res = srec->y_res = FIXTOINT(nscss_screen_dpi); + srec->x_res = srec->y_res = browser_get_dpi(); } FT_Glyph fb_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4) -- cgit v1.2.3