summaryrefslogtreecommitdiff
path: root/atari/plot/font_freetype.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-04-19 22:44:49 +0000
committerOle Loots <ole@monochrom.net>2012-04-19 22:44:49 +0000
commit4204599fb949fa7eaea9b21213bc09861c7f14bf (patch)
treea754bb6ef88abee75811490111130944ceb42354 /atari/plot/font_freetype.c
parentf6b15c1061327076d28a8438ff5baf0ab7bfe4d8 (diff)
downloadnetsurf-4204599fb949fa7eaea9b21213bc09861c7f14bf.tar.gz
netsurf-4204599fb949fa7eaea9b21213bc09861c7f14bf.tar.bz2
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
Diffstat (limited to 'atari/plot/font_freetype.c')
-rwxr-xr-xatari/plot/font_freetype.c2
1 files changed, 1 insertions, 1 deletions
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)