summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-05-12 19:36:22 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-05-12 20:36:39 +0100
commitc2783ac1d45ddc44953629203e9a3feba0fd41ee (patch)
treed53304ad974a7400a64937c1d6321f8a342cde12
parent0a91a057e96769d5984d7ff39da5f5faf64b72af (diff)
downloadnetsurf-c2783ac1d45ddc44953629203e9a3feba0fd41ee.tar.gz
netsurf-c2783ac1d45ddc44953629203e9a3feba0fd41ee.tar.bz2
change zoom button window dimensions test suff
-rw-r--r--amiga/gui.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index b0c1c7e67..97e45e54b 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -4424,12 +4424,17 @@ void gui_window_get_dimensions(struct gui_window *g, int *width, int *height,
void gui_window_update_extent(struct gui_window *g)
{
- struct IBox *bbox;
+ struct IBox *bbox, zbox;
ULONG cur_tab = 0;
if(!g) return;
if(!g->shared->bw->current_content) return;
-
+ /*
+ zbox.Top = ~0;
+ zbox.Left = ~0;
+ zbox.Width = (WORD)(content_get_width(g->shared->bw->current_content) * g->shared->bw->scale);
+ zbox.Height = (WORD)(content_get_height(g->shared->bw->current_content) * g->shared->bw->scale);
+ */
if(g->tab_node && (g->shared->tabs > 1)) GetAttr(CLICKTAB_Current,
g->shared->objects[GID_TABS], (ULONG *)&cur_tab);
@@ -4459,7 +4464,7 @@ void gui_window_update_extent(struct gui_window *g)
SCROLLER_Visible, bbox->Width,
TAG_DONE);
}
-
+ //SetWindowAttr(g->shared->win, WA_Zoom, &zbox, sizeof(ULONG));
}
g->shared->new_content = true;
}