mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Added flag for monochrom font rendering.
svn path=/trunk/netsurf/; revision=13381
This commit is contained in:
parent
ede3e647d9
commit
b5a9e93d55
15
atari/plot.c
15
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 ){
|
||||
|
Loading…
Reference in New Issue
Block a user