summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-01-06 22:06:31 +0000
committerOle Loots <ole@monochrom.net>2012-01-06 22:06:31 +0000
commitb5a9e93d55a27547074923b65f7f86106df7cf12 (patch)
tree9d790800456bf997b44196f0a0b792f293c5346c
parentede3e647d9ad6132e8dfeb476b23e3457bca31c9 (diff)
downloadnetsurf-b5a9e93d55a27547074923b65f7f86106df7cf12.tar.gz
netsurf-b5a9e93d55a27547074923b65f7f86106df7cf12.tar.bz2
Added flag for monochrom font rendering.
svn path=/trunk/netsurf/; revision=13381
-rwxr-xr-xatari/plot.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/atari/plot.c b/atari/plot.c
index 465ceb7d5..fc2e1739b 100755
--- a/atari/plot.c
+++ b/atari/plot.c
@@ -54,12 +54,15 @@ int atari_plotter_init( char* drvrname, char * fdrvrname )
GRECT loc_pos={0,0,360,400};
int err=0;
struct s_driver_table_entry * drvinfo;
- int flags = 0;
+ int flags = 0;
+ unsigned long font_flags = 0;
if( option_atari_dither == 1)
flags |= PLOT_FLAG_DITHER;
if( option_atari_transparency == 1 )
- flags |= PLOT_FLAG_TRANS;
+ flags |= PLOT_FLAG_TRANS;
+ if( option_atari_font_monochrom == 1 )
+ font_flags |= FONTPLOT_FLAG_MONOGLYPH;
vdih = app.graf.handle;
if( verbose_log ) {
@@ -70,7 +73,7 @@ int atari_plotter_init( char* drvrname, char * fdrvrname )
drvinfo = get_screen_driver_entry( drvrname );
LOG(("using plotters: %s, %s", drvrname, fdrvrname));
- fplotter = new_font_plotter(vdih, fdrvrname, 0, &err );
+ fplotter = new_font_plotter(vdih, fdrvrname, font_flags, &err );
if(err){
char * desc = plotter_err_str(err);
die(("Unable to load font plotter %s -> %s", fdrvrname, desc ));
@@ -153,11 +156,11 @@ static bool plot_bitmap(int x, int y, int width, int height,
bool repeat_x = (flags & BITMAPF_REPEAT_X);
bool repeat_y = (flags & BITMAPF_REPEAT_Y);
int bmpw,bmph;
- struct rect clip;
+ struct rect clip;
bmpw = bitmap_get_width(bitmap);
- bmph = bitmap_get_height(bitmap);
-
+ bmph = bitmap_get_height(bitmap);
+
if ( repeat_x || repeat_y ) {
plotter_get_clip( plotter, &clip );
if( repeat_x && width == 1 && repeat_y && height == 1 ){