Port BeOS front end to browser_window_redraw().

svn path=/trunk/netsurf/; revision=11725
This commit is contained in:
Michael Drake 2011-02-20 16:07:43 +00:00
parent d2deb88e3d
commit 1545c2bbae

View File

@ -940,10 +940,6 @@ void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
if (c == NULL) if (c == NULL)
return; return;
/* HTML rendering handles scale itself */
if (content_get_type(c) == CONTENT_HTML)
scale = 1;
if (!view->LockLooper()) if (!view->LockLooper())
return; return;
nsbeos_current_gc_set(view); nsbeos_current_gc_set(view);
@ -959,11 +955,9 @@ void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message)
clip.y0 = (int)updateRect.top; clip.y0 = (int)updateRect.top;
clip.x1 = (int)updateRect.right + 1; clip.x1 = (int)updateRect.right + 1;
clip.y1 = (int)updateRect.bottom + 1; clip.y1 = (int)updateRect.bottom + 1;
content_redraw(c, 0, 0,
(view->Bounds().Width() + 1) * scale, browser_window_redraw(c, 0, 0, &clip);
(view->Bounds().Height() + 1) * scale,
&clip,
g->bw->scale, 0xFFFFFF);
current_redraw_browser = NULL; current_redraw_browser = NULL;
if (g->careth != 0) if (g->careth != 0)