Gitweb links:

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

The branch, master has been updated
       via  ce645599c995acfdba432d05a7b38627350797a7 (commit)
      from  b58825dcf75473a5ce13b7f405a8ca3c598fd1cc (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/commitdiff/ce645599c995acfdba432d05a7b38627350797a7
commit ce645599c995acfdba432d05a7b38627350797a7
Author: Ole Loots <[email protected]>
Commit: Ole Loots <[email protected]>

    Fix 1 pixel caret redraw bug.

diff --git a/atari/browser.c b/atari/browser.c
index 86401b6..034f89a 100755
--- a/atari/browser.c
+++ b/atari/browser.c
@@ -659,7 +659,7 @@ void browser_restore_caret_background( struct gui_window * 
gw, LGRECT * area)
                        area->g_x-b->scroll.current.x+b->caret.current.g_x,
                        area->g_y-b->scroll.current.y+b->caret.current.g_y,
                        gw->browser->caret.current.g_w,
-                       gw->browser->caret.current.g_h,
+                       gw->browser->caret.current.g_h+1,
                        &gw->browser->caret.background
        );
        gw->browser->caret.background.fd_addr = NULL;
@@ -709,12 +709,12 @@ void browser_redraw_caret( struct gui_window * gw, LGRECT 
* area )
                init_mfdb(0, caret.g_w, caret.g_h, 0, &screen);
                pxy[0] = caret.g_x;
                pxy[1] = caret.g_y;
-               pxy[2] = caret.g_x + caret.g_w - 1;
-               pxy[3] = caret.g_y + caret.g_h - 1;
+               pxy[2] = caret.g_x + caret.g_w;
+               pxy[3] = caret.g_y + caret.g_h;
                pxy[4] = 0;
                pxy[5] = 0;
-               pxy[6] = caret.g_w - 1;
-               pxy[7] = caret.g_h - 1;
+               pxy[6] = caret.g_w;
+               pxy[7] = caret.g_h;
                /* hide the mouse */
                v_hide_c (app.graf.handle);
                /* copy screen image */
@@ -724,8 +724,8 @@ void browser_redraw_caret( struct gui_window * gw, LGRECT * 
area )
                caret.g_y -= area->g_y;
                clip.x0 = caret.g_x;
                clip.y0 = caret.g_y;
-               clip.x1 = caret.g_x + caret.g_w-1;
-               clip.y1 = caret.g_y + caret.g_h-1;
+               clip.x1 = caret.g_x + caret.g_w;
+               clip.y1 = caret.g_y + caret.g_h;
                /* store old clip before adjusting it: */
                plot_get_clip( &old_clip );
                /* clip to cursor: */


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

Summary of changes:
 atari/browser.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/atari/browser.c b/atari/browser.c
index 86401b6..034f89a 100755
--- a/atari/browser.c
+++ b/atari/browser.c
@@ -659,7 +659,7 @@ void browser_restore_caret_background( struct gui_window * 
gw, LGRECT * area)
                        area->g_x-b->scroll.current.x+b->caret.current.g_x,
                        area->g_y-b->scroll.current.y+b->caret.current.g_y,
                        gw->browser->caret.current.g_w,
-                       gw->browser->caret.current.g_h,
+                       gw->browser->caret.current.g_h+1,
                        &gw->browser->caret.background
        );
        gw->browser->caret.background.fd_addr = NULL;
@@ -709,12 +709,12 @@ void browser_redraw_caret( struct gui_window * gw, LGRECT 
* area )
                init_mfdb(0, caret.g_w, caret.g_h, 0, &screen);
                pxy[0] = caret.g_x;
                pxy[1] = caret.g_y;
-               pxy[2] = caret.g_x + caret.g_w - 1;
-               pxy[3] = caret.g_y + caret.g_h - 1;
+               pxy[2] = caret.g_x + caret.g_w;
+               pxy[3] = caret.g_y + caret.g_h;
                pxy[4] = 0;
                pxy[5] = 0;
-               pxy[6] = caret.g_w - 1;
-               pxy[7] = caret.g_h - 1;
+               pxy[6] = caret.g_w;
+               pxy[7] = caret.g_h;
                /* hide the mouse */
                v_hide_c (app.graf.handle);
                /* copy screen image */
@@ -724,8 +724,8 @@ void browser_redraw_caret( struct gui_window * gw, LGRECT * 
area )
                caret.g_y -= area->g_y;
                clip.x0 = caret.g_x;
                clip.y0 = caret.g_y;
-               clip.x1 = caret.g_x + caret.g_w-1;
-               clip.y1 = caret.g_y + caret.g_h-1;
+               clip.x1 = caret.g_x + caret.g_w;
+               clip.y1 = caret.g_y + caret.g_h;
                /* store old clip before adjusting it: */
                plot_get_clip( &old_clip );
                /* clip to cursor: */


-- 
NetSurf Browser

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

Reply via email to