diff options
author | Ole Loots <ole@monochrom.net> | 2012-04-19 22:44:49 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-04-19 22:44:49 +0000 |
commit | 4204599fb949fa7eaea9b21213bc09861c7f14bf (patch) | |
tree | a754bb6ef88abee75811490111130944ceb42354 /atari/plot/font_freetype.c | |
parent | f6b15c1061327076d28a8438ff5baf0ab7bfe4d8 (diff) | |
download | netsurf-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-x | atari/plot/font_freetype.c | 2 |
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) |