Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/8c3d79f6fbd7608e9449b8d6213cb07d507423fe
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/8c3d79f6fbd7608e9449b8d6213cb07d507423fe
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/8c3d79f6fbd7608e9449b8d6213cb07d507423fe

The branch, master has been updated
       via  8c3d79f6fbd7608e9449b8d6213cb07d507423fe (commit)
       via  5a9afe471c21de6af798a7f82ca31ece598f8c2e (commit)
      from  8bdea3cc7e7838b0d6c2eb33966724ed2138bf89 (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=8c3d79f6fbd7608e9449b8d6213cb07d507423fe
commit 8c3d79f6fbd7608e9449b8d6213cb07d507423fe
Author: James Woodcock <[email protected]>
Commit: Vincent Sanders <[email protected]>

    fix redraw on window resize
    
    A race condition with WM_PAINT can cause win32_window_set_scroll() to
    use the old window size.  If this happens, the page data will not get
    drawn from the top left of the window but offset quite a large
    distance down and to the right.

diff --git a/frontends/windows/window.c b/frontends/windows/window.c
index 976974c..c721736 100644
--- a/frontends/windows/window.c
+++ b/frontends/windows/window.c
@@ -1339,7 +1339,6 @@ nsws_window_resize(struct gui_window *gw,
                   WPARAM wparam,
                   LPARAM lparam)
 {
-       struct rect rect;
        RECT rstatus, rtool;
 
        if ((gw->toolbar == NULL) ||
@@ -1352,7 +1351,6 @@ nsws_window_resize(struct gui_window *gw,
 
        GetClientRect(gw->toolbar, &rtool);
        GetWindowRect(gw->statusbar, &rstatus);
-       win32_window_get_scroll(gw, &rect.x0, &rect.y0);
        gw->width = LOWORD(lparam);
        gw->height = HIWORD(lparam) - (rtool.bottom - rtool.top) - 
(rstatus.bottom - rstatus.top);
 
@@ -1366,7 +1364,7 @@ nsws_window_resize(struct gui_window *gw,
        }
        nsws_window_update_forward_back(gw);
 
-       win32_window_set_scroll(gw, &rect);
+       browser_window_update(gw->bw, false);
 
        if (gw->toolbar != NULL) {
                SendMessage(gw->toolbar, TB_SETSTATE,


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=5a9afe471c21de6af798a7f82ca31ece598f8c2e
commit 5a9afe471c21de6af798a7f82ca31ece598f8c2e
Author: mjw <mjw@irc>
Commit: Vincent Sanders <[email protected]>

    Fix windows word splitting
    
    mjw on IRC pointed out that the windows word splitting code was not
    checking a return code properly resulting in broken word splitting.

diff --git a/frontends/windows/font.c b/frontends/windows/font.c
index 3407ec4..75464f9 100644
--- a/frontends/windows/font.c
+++ b/frontends/windows/font.c
@@ -280,7 +280,7 @@ win32_font_split(const plot_font_style_t *style,
                                length,
                                x,
                                char_offset,
-                               actual_x)) {
+                               actual_x) == NSERROR_OK) {
                c_off = *char_offset;
                if (*char_offset == length) {
                        ret = NSERROR_OK;


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

Summary of changes:
 frontends/windows/font.c   |    2 +-
 frontends/windows/window.c |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/frontends/windows/font.c b/frontends/windows/font.c
index 3407ec4..75464f9 100644
--- a/frontends/windows/font.c
+++ b/frontends/windows/font.c
@@ -280,7 +280,7 @@ win32_font_split(const plot_font_style_t *style,
                                length,
                                x,
                                char_offset,
-                               actual_x)) {
+                               actual_x) == NSERROR_OK) {
                c_off = *char_offset;
                if (*char_offset == length) {
                        ret = NSERROR_OK;
diff --git a/frontends/windows/window.c b/frontends/windows/window.c
index 976974c..c721736 100644
--- a/frontends/windows/window.c
+++ b/frontends/windows/window.c
@@ -1339,7 +1339,6 @@ nsws_window_resize(struct gui_window *gw,
                   WPARAM wparam,
                   LPARAM lparam)
 {
-       struct rect rect;
        RECT rstatus, rtool;
 
        if ((gw->toolbar == NULL) ||
@@ -1352,7 +1351,6 @@ nsws_window_resize(struct gui_window *gw,
 
        GetClientRect(gw->toolbar, &rtool);
        GetWindowRect(gw->statusbar, &rstatus);
-       win32_window_get_scroll(gw, &rect.x0, &rect.y0);
        gw->width = LOWORD(lparam);
        gw->height = HIWORD(lparam) - (rtool.bottom - rtool.top) - 
(rstatus.bottom - rstatus.top);
 
@@ -1366,7 +1364,7 @@ nsws_window_resize(struct gui_window *gw,
        }
        nsws_window_update_forward_back(gw);
 
-       win32_window_set_scroll(gw, &rect);
+       browser_window_update(gw->bw, false);
 
        if (gw->toolbar != NULL) {
                SendMessage(gw->toolbar, TB_SETSTATE,


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