Only set the busy pointer after we've decided not to bail out early

This commit is contained in:
Chris Young 2013-01-06 11:40:37 +00:00
parent cc321d5f63
commit 4011cc8671

View File

@ -3599,8 +3599,6 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin,
struct rect clip;
int tile_x_scale = (int)(nsoption_int(redraw_tile_size_x) / gwin->bw->scale);
int tile_y_scale = (int)(nsoption_int(redraw_tile_size_y) / gwin->bw->scale);
ami_set_pointer(gwin, GUI_POINTER_WAIT, false);
browserglob.shared_pens = &gwin->shared_pens;
@ -3634,6 +3632,8 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin,
// printf("%ld %ld %ld %ld\n",left, top, width, height);
ami_set_pointer(gwin, GUI_POINTER_WAIT, false);
for(y = top; y < (top + height); y += tile_y_scale) {
clip.y0 = 0;
clip.y1 = nsoption_int(redraw_tile_size_y);