r5384 vince - /branches/vince/netsurf-fb/framebuffer/fb_cursor.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 21 00:06:08 BST 2008


Author: vince
Date: Sat Sep 20 18:06:08 2008
New Revision: 5384

URL: http://source.netsurf-browser.org?rev=5384&view=rev
Log:
fix off by one in pointer fix

Modified:
    branches/vince/netsurf-fb/framebuffer/fb_cursor.c

Modified: branches/vince/netsurf-fb/framebuffer/fb_cursor.c
URL: http://source.netsurf-browser.org/branches/vince/netsurf-fb/framebuffer/fb_cursor.c?rev=5384&r1=5383&r2=5384&view=diff
==============================================================================
--- branches/vince/netsurf-fb/framebuffer/fb_cursor.c (original)
+++ branches/vince/netsurf-fb/framebuffer/fb_cursor.c Sat Sep 20 18:06:08 2008
@@ -82,8 +82,8 @@
         int yloop;
         int height = fb->cursor->height;
 
-        if ((fb->height - fb->cursor->y) < height)
-                height = (fb->height - fb->cursor->y);
+        if ((fb->height - fb->cursor->y - 1) < height)
+                height = (fb->height - fb->cursor->y - 1);
 
         if (height == 0)
                 return;




More information about the netsurf-commits mailing list