From 4204599fb949fa7eaea9b21213bc09861c7f14bf Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 19 Apr 2012 22:44:49 +0000 Subject: Optimized bitmap blitting: cache native (converted) bitmaps. This required an change to the convert and blit routines - for opaque images, they convert the whole image. Transparent images are still converted on demand and still only the clipped area is converted. This is incomplete - native buffers should be stored in the well known bitmap buffer, but currently the bitmap struct holds a second buffer which contains converted data. svn path=/trunk/netsurf/; revision=13886 --- atari/plot/font_freetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atari/plot/font_freetype.c') diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c index 551302e79..917f20b5e 100755 --- a/atari/plot/font_freetype.c +++ b/atari/plot/font_freetype.c @@ -419,7 +419,7 @@ static void draw_glyph8(FONT_PLOTTER self, GRECT * loc, uint8_t * pixdata, int p linebuf[xloop] = (uint32_t)(colour | fontpix); } } - self->plotter->bitmap( self->plotter, fontbmp, loc->g_x, loc->g_y, 0, 0); + self->plotter->bitmap( self->plotter, fontbmp, loc->g_x, loc->g_y, 0, BITMAPF_MONOGLYPH); } static void draw_glyph1(FONT_PLOTTER self, GRECT * loc, uint8_t * pixdata, int pitch, uint32_t colour) -- cgit v1.2.3