Files
mtkports/www-client/netsurf/patches/0008-montauk-auto-redraw.patch
T

29 lines
767 B
Diff

diff --git a/frontends/monkey/browser.c b/frontends/monkey/browser.c
--- a/frontends/monkey/browser.c
+++ b/frontends/monkey/browser.c
@@ -172,4 +172,24 @@ static void
gui_window_stop_throbber(struct gui_window *g)
{
+#if defined(__montauk__)
+ struct rect clip = {
+ .x0 = 0,
+ .y0 = 0,
+ .x1 = g->width,
+ .y1 = g->height
+ };
+ struct redraw_context ctx = {
+ .interactive = true,
+ .background_images = true,
+ .plot = monkey_plotters,
+ .priv = g
+ };
+ for (int y = 0; y < g->height; y++) {
+ for (int x = 0; x < g->width; x++)
+ g->pixels[y * g->width + x] = 0xffffffffu;
+ }
+ browser_window_redraw(g->bw, g->scrollx, g->scrolly, &clip, &ctx);
+ mtk_win_present(g->native_id);
+#endif
moutf(MOUT_WINDOW, "STOP_THROBBER WIN %u", g->win_num);
}