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

netsurf at semichrome.net netsurf at semichrome.net
Sun Sep 21 00:25:10 BST 2008


Author: vince
Date: Sat Sep 20 18:25:09 2008
New Revision: 5385

URL: http://source.netsurf-browser.org?rev=5385&view=rev
Log:
when fixing bloody silly off by one errors remember to fix *both* references

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=5385&r1=5384&r2=5385&view=diff
==============================================================================
--- branches/vince/netsurf-fb/framebuffer/fb_cursor.c (original)
+++ branches/vince/netsurf-fb/framebuffer/fb_cursor.c Sat Sep 20 18:25:09 2008
@@ -117,8 +117,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