From f9e950ba8fda2614464dc8111b38a11b48fe4816 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 16 Apr 2013 00:53:33 +0200 Subject: Remove resize/format kludge. --- atari/rootwin.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'atari/rootwin.c') diff --git a/atari/rootwin.c b/atari/rootwin.c index 4b66510bc..28e327176 100755 --- a/atari/rootwin.c +++ b/atari/rootwin.c @@ -408,8 +408,6 @@ void window_open(ROOTWIN *rootwin, struct gui_window *gw, GRECT pos) window_update_back_forward(rootwin); window_set_focus(rootwin, BROWSER, rootwin->active_gui_window->browser); - - } void window_restore_active_gui_window(ROOTWIN *rootwin) @@ -838,13 +836,6 @@ static void window_redraw_content(ROOTWIN *rootwin, GRECT *content_area, struct rect redraw_area; GRECT content_area_rel; - if(bw->window->browser->reformat_pending) { - browser_window_reformat(bw, true, content_area->g_w, - content_area->g_h); - bw->window->browser->reformat_pending = false; - //return; - } - //dbg_grect("browser redraw, content area", content_area); //dbg_grect("browser redraw, content clip", clip); @@ -1438,11 +1429,7 @@ static void on_resized(ROOTWIN *rootwin) toolbar_set_width(rootwin->toolbar, work.g_w); if ( gw->browser->bw->current_content != NULL ) { - /* Reformat will happen when redraw is processed: */ - // TODO: call reformat directly, this was introduced because - // of bad AES knowledge, it's ok to call it directly here... - //printf("reformat......\n"); - rootwin->active_gui_window->browser->reformat_pending = true; + browser_window_reformat(gw->browser->bw, true, work.g_w, work.g_h); } } if (rootwin->loc.g_x != g.g_x || rootwin->loc.g_y != g.g_y) { -- cgit v1.2.3