From b23f55c81bca21de7841111ace809df0f6408d65 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 21 Jan 2017 16:49:14 +0000 Subject: fix warnings and errors in atari frontend --- frontends/atari/plot/font_freetype.c | 5 +++-- frontends/atari/plot/font_internal.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'frontends/atari/plot') diff --git a/frontends/atari/plot/font_freetype.c b/frontends/atari/plot/font_freetype.c index 8b535e3a3..17d3c3bfd 100644 --- a/frontends/atari/plot/font_freetype.c +++ b/frontends/atari/plot/font_freetype.c @@ -262,13 +262,14 @@ static FT_Glyph ft_getglyph(const plot_font_style_t *fstyle, uint32_t ucs4) FT_UInt glyph_index; FTC_ScalerRec srec; FT_Glyph glyph; - FT_Error error; + //FT_Error error; ftc_faceid_t *ft_face; ft_fill_scalar(fstyle, &srec); ft_face = (ftc_faceid_t *)srec.face_id; glyph_index = FTC_CMapCache_Lookup(ft_cmap_cache, srec.face_id, ft_face->cidx, ucs4); - error = FTC_ImageCache_LookupScaler(ft_image_cache, + //error = + FTC_ImageCache_LookupScaler(ft_image_cache, &srec, FT_LOAD_RENDER | FT_LOAD_FORCE_AUTOHINT | diff --git a/frontends/atari/plot/font_internal.c b/frontends/atari/plot/font_internal.c index 6a811e38b..3575bc3e1 100644 --- a/frontends/atari/plot/font_internal.c +++ b/frontends/atari/plot/font_internal.c @@ -161,7 +161,7 @@ static int pixel_pos( FONT_PLOTTER self, const plot_font_style_t * fstyle,const static void draw_glyph1(FONT_PLOTTER self, GRECT *inloc, uint8_t *chrp, int pitch, uint32_t colour ) { size_t bmpstride; - GRECT clip; + //GRECT clip; uint32_t * fontdata; int xloop,yloop; int stride = pitch / 8; -- cgit v1.2.3