summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-06-05 11:49:50 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-06-05 11:49:50 +0000
commitb5d8f9b25e2ff0289caae3adbc227770eafb54d6 (patch)
treed9609e4b3d4c54c8aebe6bd5ab85fdb74342e2e3 /amiga
parent861137d3b22a9fb372b76ba25cde9ada0cd122b6 (diff)
downloadnetsurf-b5d8f9b25e2ff0289caae3adbc227770eafb54d6.tar.gz
netsurf-b5d8f9b25e2ff0289caae3adbc227770eafb54d6.tar.bz2
plugin_hack loose ends
svn path=/trunk/netsurf/; revision=12464
Diffstat (limited to 'amiga')
-rw-r--r--amiga/plugin_hack.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c
index e1a92f1cd..e450b1c6a 100644
--- a/amiga/plugin_hack.c
+++ b/amiga/plugin_hack.c
@@ -80,7 +80,7 @@ nserror amiga_plugin_hack_init(void)
if(node)
{
- printf("plugin_hack registered %s\n",lwc_string_data(type));
+ LOG(("plugin_hack registered %s\n",lwc_string_data(type)));
error = content_factory_register_handler(type,
&amiga_plugin_hack_content_handler);
@@ -149,11 +149,16 @@ bool amiga_plugin_hack_redraw(struct content *c, int x, int y,
float scale, colour background_colour,
bool repeat_x, bool repeat_y)
{
- static plot_style_t pstyle;
+ plot_style_t pstyle = {
+ .fill_type = PLOT_OP_TYPE_SOLID,
+ .fill_colour = 0xffffff,
+ .stroke_colour = 0x000000,
+ .stroke_width = 1,
+ };
LOG(("amiga_plugin_hack_redraw"));
- plot.rectangle(x, y, x + width, y + height, plot_style_fill_red);
+ plot.rectangle(x, y, x + width, y + height, &pstyle);
return plot.text(x, y+20, lwc_string_data(content__get_mime_type(c)),
lwc_string_length(content__get_mime_type(c)), plot_style_font);