Author: mono
Date: Thu Jun 30 14:16:11 2011
New Revision: 12548
URL:
http://source.netsurf-browser.org?rev=12548&view=rev
Log:
adjusted typo, fixed compilation of setting knockout option during runtime.
Modified:
trunk/netsurf/atari/plot.c
Modified: trunk/netsurf/atari/plot.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/atari/plot.c?rev=12548&am...
==============================================================================
--- trunk/netsurf/atari/plot.c (original)
+++ trunk/netsurf/atari/plot.c Thu Jun 30 14:16:11 2011
@@ -90,29 +90,30 @@
}
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;
- }
-}
-
-bool plot_rectangle( int x0, int y0, int x1, int y1,
- const plot_style_t *style )
+ *x = true;
+ }
+}
+
+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 @@
-const struct plotter_table atari_plotter = {
+const struct plotter_table atari_plotters = {
.rectangle = plot_rectangle,
.line = plot_line,
.polygon = plot_polygon,