From b5a9e93d55a27547074923b65f7f86106df7cf12 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Fri, 6 Jan 2012 22:06:31 +0000 Subject: Added flag for monochrom font rendering. svn path=/trunk/netsurf/; revision=13381 --- atari/plot.c | 15 +++++++++------ 1 file 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 ){ -- cgit v1.2.3