summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-20 14:37:58 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-20 14:37:58 +0100
commit2d6da52f38ea078b0d67eb262e2507ee83902f6d (patch)
tree483ba72f7226e13fcb6705f9743889df65d7a8ba /amiga
parent6219ee7b24326322c1522926d25b7054b594c791 (diff)
downloadnetsurf-2d6da52f38ea078b0d67eb262e2507ee83902f6d.tar.gz
netsurf-2d6da52f38ea078b0d67eb262e2507ee83902f6d.tar.bz2
Remove box use from maiga plugin hack. May need a new way to get dimensions?
Diffstat (limited to 'amiga')
-rw-r--r--amiga/plugin_hack.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/amiga/plugin_hack.c b/amiga/plugin_hack.c
index e7ce0de13..89e80e3e4 100644
--- a/amiga/plugin_hack.c
+++ b/amiga/plugin_hack.c
@@ -25,7 +25,6 @@
#include "content/content_protected.h"
#include "content/hlcache.h"
#include "desktop/plotters.h"
-#include "render/box.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/talloc.h"
@@ -50,8 +49,7 @@ static bool amiga_plugin_hack_redraw(struct content *c,
struct content_redraw_data *data, const struct rect *clip,
const struct redraw_context *ctx);
static void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
- struct content *page, struct box *box,
- struct object_params *params);
+ struct content *page, struct object_params *params);
static void amiga_plugin_hack_close(struct content *c);
static nserror amiga_plugin_hack_clone(const struct content *old, struct content **newc);
static content_type amiga_plugin_hack_content_type(void);
@@ -173,15 +171,15 @@ bool amiga_plugin_hack_redraw(struct content *c,
* \param params object parameters, or 0 if not an object
*/
void amiga_plugin_hack_open(struct content *c, struct browser_window *bw,
- struct content *page, struct box *box,
- struct object_params *params)
+ struct content *page, struct object_params *params)
{
LOG(("amiga_plugin_hack_open %s", nsurl_access(content_get_url(c))));
- if(c && box)
+ if(c)
{
- c->width = box->width;
- c->height = box->height;
+ /* TODO: Do we need valid dimensions at this point? */
+ c->width = 0;
+ c->height = 0;
}
return;