fix scollbar off by one error
andi at rhlx01.fht-esslingen.de
Mon Sep 26 06:54:25 CDT 2005
On Mon, Sep 26, 2005 at 05:08:09PM +0530, Vijay Kiran Kamuju wrote:
> fix scrollbar off by one error (bug 765)
r = *rect;
if( vertical )
- r.bottom = r.top + arrowSize;
+ r.bottom = (r.top++) + arrowSize;
- r.right = r.left + arrowSize;
+ r.right = (r.left++) + arrowSize;
Are you sure this is what you want?
This will increment r.top and r.left, too!
Even if it is exactly what you intend it to do, then this code is still
confusing and should instead use more explicit notation.
More information about the wine-devel