diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-04 15:44:57 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-08-04 15:44:57 +0100 |
commit | da4968b8e0af30d0caaf2fcaed88f5d60a0fccdf (patch) | |
tree | d83f1d844693734b4e072fa0a5a222df46c164ce /amiga | |
parent | e454cf3f9cc6aaff6e4036c4873d7ef24191c290 (diff) | |
download | netsurf-da4968b8e0af30d0caaf2fcaed88f5d60a0fccdf.tar.gz netsurf-da4968b8e0af30d0caaf2fcaed88f5d60a0fccdf.tar.bz2 |
Allow selecting <16-bit wcreenmodes so we can easily see what needs doing.
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index d5d227eef..ee15ee98e 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -603,7 +603,7 @@ void ami_openscreen(void) if(screenmodereq = AllocAslRequest(ASL_ScreenModeRequest,NULL)) { if(AslRequestTags(screenmodereq, - ASLSM_MinDepth,16, + ASLSM_MinDepth,0, ASLSM_MaxDepth,32, TAG_DONE)) { @@ -3187,7 +3187,7 @@ void gui_window_destroy(struct gui_window *g) if(g->shared->appwin) RemoveAppWindow(g->shared->appwin); /* These aren't freed by the above. - * TODO: nav_west etc need freeing too */ + * TODO: nav_west etc need freeing too? */ DisposeObject(g->shared->objects[GID_ADDTAB_BM]); DisposeObject(g->shared->objects[GID_CLOSETAB_BM]); DisposeObject(g->shared->objects[GID_TABS_FLAG]); @@ -3308,7 +3308,7 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, if(width <= 0) return; if(height <= 0) return; -//printf("%ld %ld %ld %ld\n",left, top, width, height); +// printf("%ld %ld %ld %ld\n",left, top, width, height); for(y = top; y < (top + height); y += tile_y_scale) { clip.y0 = 0; @@ -3470,14 +3470,14 @@ void ami_do_redraw(struct gui_window_2 *g) g->bw->window->c_h = g->bw->window->c_h_temp; - if(vcurrent>oldv) + if(vcurrent>oldv) /* Going down */ { ami_do_redraw_limits(g->bw->window, g->bw, hcurrent, (height / g->bw->scale) + oldv - 1, hcurrent + (width / g->bw->scale), vcurrent + (height / g->bw->scale) + 1); } - else if(vcurrent<oldv) + else if(vcurrent<oldv) /* Going up */ { ami_do_redraw_limits(g->bw->window, g->bw, hcurrent, vcurrent, @@ -3485,14 +3485,14 @@ void ami_do_redraw(struct gui_window_2 *g) oldv); } - if(hcurrent>oldh) + if(hcurrent>oldh) /* Going right */ { ami_do_redraw_limits(g->bw->window, g->bw, (width / g->bw->scale) + oldh , vcurrent, hcurrent + (width / g->bw->scale), vcurrent + (height / g->bw->scale)); } - else if(hcurrent<oldh) + else if(hcurrent<oldh) /* Going left */ { ami_do_redraw_limits(g->bw->window, g->bw, hcurrent, vcurrent, |