summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-13 02:34:10 +0100
committerVincent Sanders <vince@kyllikki.org>2014-10-13 02:34:10 +0100
commit3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807 (patch)
tree4a61f58e667900e8c47218a6a2cca4623692da3f /atari
parentbfc7552d8dcc0c737c8282280c4a3f71cf58aed4 (diff)
downloadnetsurf-3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807.tar.gz
netsurf-3fa0ed01c04355e4b9b1ba1befdf46e8bc3f1807.tar.bz2
add API to set DPI
Diffstat (limited to 'atari')
-rwxr-xr-xatari/plot/font_freetype.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c
index 7ca2d8aba..13250d4e1 100755
--- a/atari/plot/font_freetype.c
+++ b/atari/plot/font_freetype.c
@@ -93,8 +93,6 @@ fantasy.ttf => Fantasy
#define CACHE_MIN_SIZE (100 * 1024)
#define BOLD_WEIGHT 700
-extern css_fixed nscss_screen_dpi;
-
extern unsigned long atari_plot_flags;
extern int atari_plot_vdi_handle;
@@ -245,11 +243,11 @@ static void ft_fill_scalar(const plot_font_style_t *fstyle, FTC_Scaler srec)
srec->width = srec->height = (fstyle->size * 64) / FONT_SIZE_SCALE;
srec->pixel = 0;
- /* calculate x/y resolution, when nscss_screen_dpi isn't available */
- /* 72 is an good value. */
- /* TODO: because nscss_screen_dpi is to large, calculate that value */
- /* by VDI values. */
- srec->x_res = srec->y_res = 72; // FIXTOINT(nscss_screen_dpi);
+ /* calculate x/y resolution, when browser_get_dpi() isn't available */
+ /* 72 is an good value. */
+ /* TODO: because browser_get_dpi() is to large, calculate that value */
+ /* by VDI values. */
+ srec->x_res = srec->y_res = 72; // browser_get_dpi();
}
static FT_Glyph ft_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4)