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
This commit is contained in:
John Tytgat 2008-03-10 00:19:11 +00:00
parent 2c7ce0143f
commit b79b0dbd82
1 changed files with 7 additions and 0 deletions

View File

@ -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;