Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/527b19b11146dbb1109f092a93ecbbcbd65a865b
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/527b19b11146dbb1109f092a93ecbbcbd65a865b
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/527b19b11146dbb1109f092a93ecbbcbd65a865b

The branch, master has been updated
       via  527b19b11146dbb1109f092a93ecbbcbd65a865b (commit)
       via  3b18d36b025c8b2a36644391393258034dd9c702 (commit)
      from  ebab4ee8d6f2b63e600b2ef82f546afba690f00d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=527b19b11146dbb1109f092a93ecbbcbd65a865b
commit 527b19b11146dbb1109f092a93ecbbcbd65a865b
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Windows: Core window: No need to erase the invalidated region on scroll.
    
    The core is responsible for rendering the invalidated region, so
    this avoids the area getting painted twice.

diff --git a/frontends/windows/corewindow.c b/frontends/windows/corewindow.c
index adf1c65..d4ffc5a 100644
--- a/frontends/windows/corewindow.c
+++ b/frontends/windows/corewindow.c
@@ -211,7 +211,7 @@ nsw32_corewindow_vscroll(struct nsw32_corewindow *nsw32_cw,
                       NULL,
                       NULL,
                       NULL,
-                      SW_ERASE | SW_INVALIDATE);
+                      SW_INVALIDATE);
 
        /**
         * /todo win32 corewindow vertical scrolling needs us to
@@ -278,7 +278,7 @@ nsw32_corewindow_hscroll(struct nsw32_corewindow *nsw32_cw,
                       NULL,
                       NULL,
                       NULL,
-                      SW_ERASE | SW_INVALIDATE);
+                      SW_INVALIDATE);
 
        return 0;
 }


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=3b18d36b025c8b2a36644391393258034dd9c702
commit 3b18d36b025c8b2a36644391393258034dd9c702
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Local history: Render window background fill.

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index cf70c47..606a8c6 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -785,9 +785,15 @@ bool browser_window_history_redraw(struct browser_window 
*bw,
                const struct redraw_context *ctx)
 {
        struct history *history;
+       struct rect rect = {
+               .x0 = 0,
+               .y0 = 0,
+       };
 
        assert(bw != NULL);
        history = bw->history;
+       rect.x1 = history->width;
+       rect.y1 = history->height;
 
        if (history == NULL) {
                LOG("Attempt to draw NULL history.");
@@ -797,6 +803,8 @@ bool browser_window_history_redraw(struct browser_window 
*bw,
        if (!history->start)
                return true;
 
+       ctx->plot->rectangle(ctx, &pstyle_bg, &rect);
+
        return browser_window_history__redraw_entry(history, history->start,
                        0, 0, 0, 0, 0, 0, false, ctx);
 }
@@ -808,6 +816,12 @@ bool browser_window_history_redraw_rectangle(struct 
browser_window *bw,
        int x, int y, const struct redraw_context *ctx)
 {
        struct history *history;
+       struct rect rect = {
+               .x0 = x0,
+               .y0 = y0,
+               .x1 = x1,
+               .y1 = y1,
+       };
 
        assert(bw != NULL);
        history = bw->history;
@@ -815,6 +829,8 @@ bool browser_window_history_redraw_rectangle(struct 
browser_window *bw,
        if (!history->start)
                return true;
 
+       ctx->plot->rectangle(ctx, &pstyle_bg, &rect);
+
        return browser_window_history__redraw_entry(history, history->start,
                x0, y0, x1, y1, x, y, true, ctx);
 }


-----------------------------------------------------------------------

Summary of changes:
 desktop/browser_history.c      |   16 ++++++++++++++++
 frontends/windows/corewindow.c |    4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index cf70c47..606a8c6 100644
--- a/desktop/browser_history.c
+++ b/desktop/browser_history.c
@@ -785,9 +785,15 @@ bool browser_window_history_redraw(struct browser_window 
*bw,
                const struct redraw_context *ctx)
 {
        struct history *history;
+       struct rect rect = {
+               .x0 = 0,
+               .y0 = 0,
+       };
 
        assert(bw != NULL);
        history = bw->history;
+       rect.x1 = history->width;
+       rect.y1 = history->height;
 
        if (history == NULL) {
                LOG("Attempt to draw NULL history.");
@@ -797,6 +803,8 @@ bool browser_window_history_redraw(struct browser_window 
*bw,
        if (!history->start)
                return true;
 
+       ctx->plot->rectangle(ctx, &pstyle_bg, &rect);
+
        return browser_window_history__redraw_entry(history, history->start,
                        0, 0, 0, 0, 0, 0, false, ctx);
 }
@@ -808,6 +816,12 @@ bool browser_window_history_redraw_rectangle(struct 
browser_window *bw,
        int x, int y, const struct redraw_context *ctx)
 {
        struct history *history;
+       struct rect rect = {
+               .x0 = x0,
+               .y0 = y0,
+               .x1 = x1,
+               .y1 = y1,
+       };
 
        assert(bw != NULL);
        history = bw->history;
@@ -815,6 +829,8 @@ bool browser_window_history_redraw_rectangle(struct 
browser_window *bw,
        if (!history->start)
                return true;
 
+       ctx->plot->rectangle(ctx, &pstyle_bg, &rect);
+
        return browser_window_history__redraw_entry(history, history->start,
                x0, y0, x1, y1, x, y, true, ctx);
 }
diff --git a/frontends/windows/corewindow.c b/frontends/windows/corewindow.c
index adf1c65..d4ffc5a 100644
--- a/frontends/windows/corewindow.c
+++ b/frontends/windows/corewindow.c
@@ -211,7 +211,7 @@ nsw32_corewindow_vscroll(struct nsw32_corewindow *nsw32_cw,
                       NULL,
                       NULL,
                       NULL,
-                      SW_ERASE | SW_INVALIDATE);
+                      SW_INVALIDATE);
 
        /**
         * /todo win32 corewindow vertical scrolling needs us to
@@ -278,7 +278,7 @@ nsw32_corewindow_hscroll(struct nsw32_corewindow *nsw32_cw,
                       NULL,
                       NULL,
                       NULL,
-                      SW_ERASE | SW_INVALIDATE);
+                      SW_INVALIDATE);
 
        return 0;
 }


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to