From b79b0dbd82ba9abb775f4dd20b68335a303e9a9d Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Mon, 10 Mar 2008 00:19:11 +0000 Subject: [PATCH] Avoid rendering using random buffer data when content is locked. In such cases we leave the window area as is. svn path=/trunk/netsurf/; revision=3912 --- riscos/window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/riscos/window.c b/riscos/window.c index 21e57b9f8..be843b31c 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1418,6 +1418,13 @@ void ro_gui_window_redraw(wimp_draw *redraw) return; } + /* We can't render locked content as it is being in the process of + being transformed. We won't update anything (i.e. leaving + window area as is) instead of showing random data in case of + buffered redraw. */ + if (c->locked) + return; + plot = ro_plotters; ro_plot_set_scale(scale); ro_gui_current_redraw_gui = g;