diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:30:30 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-02-13 18:30:30 +0000 |
commit | 184348dada5ca68c0765c54061fef76408d4ed6c (patch) | |
tree | 505e10746a87e708952bdc0d1eccf6dbe7b1aa8c /frontends/amiga/gui.c | |
parent | 76d1758d7f51d071be9c09b55e50c6ee82ed8afc (diff) | |
download | netsurf-184348dada5ca68c0765c54061fef76408d4ed6c.tar.gz netsurf-184348dada5ca68c0765c54061fef76408d4ed6c.tar.bz2 |
Remove direct_render, only ever used for debugging
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index a82482c9f..eb6be4ce6 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -4828,7 +4828,6 @@ static void ami_do_redraw(struct gui_window_2 *gwin) ULONG hcurrent,vcurrent,xoffset,yoffset,width=800,height=600; struct IBox *bbox; ULONG oldh = gwin->oldh, oldv=gwin->oldv; - struct RastPort *temprp; if(browser_window_redraw_ready(gwin->gw->bw) == false) return; @@ -4897,7 +4896,6 @@ static void ami_do_redraw(struct gui_window_2 *gwin) } else { - struct rect clip; struct redraw_context ctx = { .interactive = true, .background_images = true, @@ -4905,33 +4903,8 @@ static void ami_do_redraw(struct gui_window_2 *gwin) .priv = browserglob }; - if(nsoption_bool(direct_render) == false) - { - ami_do_redraw_tiled(gwin, true, hcurrent, vcurrent, width, height, hcurrent, vcurrent, bbox, &ctx); - } - else - { -#if 0 -/**FIXME: this is broken, only exists for debugging */ - ami_plot_ra_set_pen_list(browserglob, gwin->shared_pens); - temprp = browserglob->rp; - browserglob->rp = gwin->win->RPort; - clip.x0 = bbox->Left; - clip.y0 = bbox->Top; - clip.x1 = bbox->Left + bbox->Width; - clip.y1 = bbox->Top + bbox->Height; - - ami_set_pointer(gwin, GUI_POINTER_WAIT, false); - - if(browser_window_redraw(gwin->gw->bw, clip.x0 - hcurrent, clip.y0 - vcurrent, &clip, &ctx)) - { - ami_clearclipreg(browserglob); - browserglob->rp = temprp; - } - - ami_reset_pointer(gwin); -#endif - } + ami_do_redraw_tiled(gwin, true, hcurrent, vcurrent, width, height, hcurrent, vcurrent, bbox, &ctx); + /* Tell NetSurf not to bother with the next queued box redraw, as we've redrawn everything. */ ami_gui_window_update_box_deferred(gwin->gw, false); } |