diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-03 19:26:51 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-03 19:26:51 +0000 |
commit | 625012a8692aef7fd6a6f7cd0b86680f31047a91 (patch) | |
tree | 117abd59b8ae633cb5c8b55a4fd5d0f28586da09 /amiga | |
parent | 131b4cdda14632f6c1c59d896582d509d1e04b09 (diff) | |
download | netsurf-625012a8692aef7fd6a6f7cd0b86680f31047a91.tar.gz netsurf-625012a8692aef7fd6a6f7cd0b86680f31047a91.tar.bz2 |
Set the busy pointer during redraws
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 14 | ||||
-rwxr-xr-x | amiga/menu.c | 1 |
2 files changed, 14 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index e1fc19d7f..b4dca1727 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3600,6 +3600,11 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, 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); + SetWindowPointer(gwin->win, + WA_BusyPointer, TRUE, + WA_PointerDelay, TRUE, + TAG_DONE); + browserglob.shared_pens = &gwin->shared_pens; if(top < 0) { @@ -3667,6 +3672,8 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, } } } + + SetWindowPointer(gwin->win, TAG_DONE); } @@ -3846,11 +3853,18 @@ void ami_do_redraw(struct gui_window_2 *g) clip.x1 = bbox->Left + bbox->Width; clip.y1 = bbox->Top + bbox->Height; + SetWindowPointer(g->win, + WA_BusyPointer, TRUE, + WA_PointerDelay, TRUE, + TAG_DONE); + if(browser_window_redraw(g->bw, clip.x0 - hcurrent, clip.y0 - vcurrent, &clip, &ctx)) { ami_clearclipreg(&browserglob); browserglob.rp = temprp; } + + SetWindowPointer(g->win, TAG_DONE); } } diff --git a/amiga/menu.c b/amiga/menu.c index 58a4d5115..3ecfbb16a 100755 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -341,7 +341,6 @@ void ami_init_menulabs(struct gui_window_2 *gwin) gwin->menutype[41] = NM_ITEM; gwin->menulab[41] = ami_utf8_easy((char *)messages_get("EnableJS")); gwin->menu_hook[41].h_Entry = (HOOKFUNC)ami_menu_item_browser_enablejs; - gwin->menukey[41] = 'J'; gwin->menutype[42] = NM_ITEM; gwin->menulab[42] = NM_BARLABEL; |