summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-06-30 19:16:11 +0000
committerOle Loots <ole@monochrom.net>2011-06-30 19:16:11 +0000
commit53e1631d7af891560cf5661c821aa1cf31751af6 (patch)
treea711768144229d9af527783410a3964b01b8e57e
parent6fd47035c1198b721e09c401a990f441050fd3ba (diff)
downloadnetsurf-53e1631d7af891560cf5661c821aa1cf31751af6.tar.gz
netsurf-53e1631d7af891560cf5661c821aa1cf31751af6.tar.bz2
adjusted typo, fixed compilation of setting knockout option during runtime.
svn path=/trunk/netsurf/; revision=12548
-rwxr-xr-xatari/plot.c17
1 files 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,