From 1545c2bbae051baed358aa071556fd31a8fae09c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 20 Feb 2011 16:07:43 +0000 Subject: [PATCH] Port BeOS front end to browser_window_redraw(). svn path=/trunk/netsurf/; revision=11725 --- beos/beos_window.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/beos/beos_window.cpp b/beos/beos_window.cpp index 98ace7e4a..bf0d2f1c6 100644 --- a/beos/beos_window.cpp +++ b/beos/beos_window.cpp @@ -940,10 +940,6 @@ void nsbeos_window_expose_event(BView *view, gui_window *g, BMessage *message) if (c == NULL) return; - /* HTML rendering handles scale itself */ - if (content_get_type(c) == CONTENT_HTML) - scale = 1; - if (!view->LockLooper()) return; 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.x1 = (int)updateRect.right + 1; clip.y1 = (int)updateRect.bottom + 1; - content_redraw(c, 0, 0, - (view->Bounds().Width() + 1) * scale, - (view->Bounds().Height() + 1) * scale, - &clip, - g->bw->scale, 0xFFFFFF); + + browser_window_redraw(c, 0, 0, &clip); + current_redraw_browser = NULL; if (g->careth != 0)