diff options
-rwxr-xr-x | amiga/gui.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index a72c29354..8941cf38c 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1065,8 +1065,10 @@ void ami_handle_msg(void) ami_update_throbber(gwin,true); // fall through case AMINS_FRAME: - GetAttr(SPACE_AreaBox,gwin->gadgets[GID_BROWSER],(ULONG *)&bbox); - browser_window_reformat(gwin->bw,bbox->Width,bbox->Height); + //GetAttr(SPACE_AreaBox,gwin->gadgets[GID_BROWSER],(ULONG *)&bbox); + //browser_reformat_pending = true; + gwin->bw->reformat_pending = true; + //browser_window_reformat(gwin->bw,bbox->Width,bbox->Height); gwin->redraw_required = true; break; } @@ -2196,8 +2198,7 @@ void ami_do_redraw(struct gui_window_2 *g,bool scroll) if (c->locked) return; current_redraw_browser = g->bw; - -// currp = &glob.rp; + currp = &glob.rp; width=bbox->Width; height=bbox->Height; @@ -2205,6 +2206,15 @@ void ami_do_redraw(struct gui_window_2 *g,bool scroll) yoffset=bbox->Top; plot = amiplot; + if(g->bw->reformat_pending) + { + Forbid(); + browser_window_reformat(g->bw,width,height); + Permit(); + g->bw->reformat_pending = false; + scroll = FALSE; + } + // if (c->type == CONTENT_HTML) scale = 1; if(scroll && c->type == CONTENT_HTML) |