diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-10 18:35:18 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-02-10 18:35:18 +0000 |
commit | f6703dcbaab1dd9d434a039709fa4ddeb8b20988 (patch) | |
tree | 5c17eef4a427a13912e44ec0a5b4bb37c4a1233c | |
parent | 97c658fea1b12f07356943ad8e454e8fb95d5baf (diff) | |
parent | af3ef0fb41194af36f7668b8ef4c976f7df96c40 (diff) | |
download | netsurf-f6703dcbaab1dd9d434a039709fa4ddeb8b20988.tar.gz netsurf-f6703dcbaab1dd9d434a039709fa4ddeb8b20988.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
-rwxr-xr-x | amiga/gui.c | 28 | ||||
-rw-r--r-- | resources/FatMessages | 2 |
2 files changed, 16 insertions, 14 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 5aadcc501..c10abed0e 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1961,7 +1961,6 @@ void ami_handle_msg(void) { if(gwin->redraw_required || gwin->bw->reformat_pending) { ami_do_redraw(gwin); - gwin->bw->window->deferred = false; } gui_window_update_box_deferred(gwin->bw->window); @@ -3904,6 +3903,7 @@ void ami_do_redraw(struct gui_window_2 *gwin) if(gwin->redraw_scroll) { + struct rect rect; int x0, y0, x1, y1; gwin->bw->window->c_h_temp = gwin->bw->window->c_h; @@ -3916,28 +3916,28 @@ void ami_do_redraw(struct gui_window_2 *gwin) if(vcurrent>oldv) /* Going down */ { - ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, height - (vcurrent - oldv) - 1); - ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, height + 1); - ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1); + ami_spacebox_to_ns_coords(gwin, &rect.x0, &rect.y0, 0, height - (vcurrent - oldv) - 1); + ami_spacebox_to_ns_coords(gwin, &rect.x1, &rect.y1, width + 1, height + 1); + gui_window_update_box(gwin->bw->window, &rect); } else if(vcurrent<oldv) /* Going up */ { - ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, 0); - ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, oldv - vcurrent + 1); - ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1); + ami_spacebox_to_ns_coords(gwin, &rect.x0, &rect.y0, 0, 0); + ami_spacebox_to_ns_coords(gwin, &rect.x1, &rect.y1, width + 1, oldv - vcurrent + 1); + gui_window_update_box(gwin->bw->window, &rect); } if(hcurrent>oldh) /* Going right */ { - ami_spacebox_to_ns_coords(gwin, &x0, &y0, width - (hcurrent - oldh), 0); - ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, height + 1); - ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1); + ami_spacebox_to_ns_coords(gwin, &rect.x0, &rect.y0, width - (hcurrent - oldh), 0); + ami_spacebox_to_ns_coords(gwin, &rect.x1, &rect.y1, width + 1, height + 1); + gui_window_update_box(gwin->bw->window, &rect); } else if(hcurrent<oldh) /* Going left */ { - ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, 0); - ami_spacebox_to_ns_coords(gwin, &x1, &y1, oldh - hcurrent + 1, height + 1); - ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1); + ami_spacebox_to_ns_coords(gwin, &rect.x0, &rect.y0, 0, 0); + ami_spacebox_to_ns_coords(gwin, &rect.x1, &rect.y1, oldh - hcurrent + 1, height + 1); + gui_window_update_box(gwin->bw->window, &rect); } } else @@ -3975,6 +3975,8 @@ void ami_do_redraw(struct gui_window_2 *gwin) ami_reset_pointer(gwin); } + /* Tell NetSurf not to bother with the next queued box redraw, as we've redrawn everything. */ + gwin->bw->window->deferred = false; } ami_update_buttons(gwin); diff --git a/resources/FatMessages b/resources/FatMessages index 047432a3a..28cb9d439 100644 --- a/resources/FatMessages +++ b/resources/FatMessages @@ -866,7 +866,7 @@ nl.all.ScaleNorm:Normal en.all.HotlistShowNS:Show hotlist... de.all.HotlistShowNS:Zeige Hotlist... fr.all.HotlistShowNS:Show hotlist... -it.all.HotlistShowNS:Mostra segnalibri... +it.all.HotlistShowNS:Mostra... nl.all.HotlistShowNS:Show hotlist... # Settings menu |