From 53e1631d7af891560cf5661c821aa1cf31751af6 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 30 Jun 2011 19:16:11 +0000 Subject: adjusted typo, fixed compilation of setting knockout option during runtime. svn path=/trunk/netsurf/; revision=12548 --- atari/plot.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/atari/plot.c b/atari/plot.c index 1a6ce4b44..a88766e8f 100755 --- a/atari/plot.c +++ b/atari/plot.c @@ -90,29 +90,30 @@ int atari_plotter_finalise( void ) } void plot_set_knockout( int set ){ + bool * x = (bool*)&atari_plotters.option_knockout; if( set == 0 ) { - plot.option_knockout = false; + *x = false; } else { - plot.option_knockout = true; + *x = true; } } -bool plot_rectangle( int x0, int y0, int x1, int y1, - const plot_style_t *style ) +bool plot_rectangle( int x0, int y0, int x1, int y1, + const plot_style_t *style ) { plotter->rectangle( plotter, x0, y0, x1, y1, style ); return ( true ); } -static bool plot_line( int x0, int y0, int x1, int y1, - const plot_style_t *style ) +static bool plot_line( int x0, int y0, int x1, int y1, + const plot_style_t *style ) { plotter->line( plotter, x0, y0, x1, y1, style ); return ( true ); } static bool plot_polygon(const int *p, unsigned int n, - const plot_style_t *style) + const plot_style_t *style) { plotter->polygon( plotter, p, n, style ); return ( true ); @@ -238,7 +239,7 @@ static bool plot_path(const float *p, unsigned int n, colour fill, float width, -const struct plotter_table atari_plotter = { +const struct plotter_table atari_plotters = { .rectangle = plot_rectangle, .line = plot_line, .polygon = plot_polygon, -- cgit v1.2.3