[Bug 24514] LVM_SUBITEMHITTEST should return negative subitem index for negative Y coordinate
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Sep 26 04:06:46 CDT 2010
http://bugs.winehq.org/show_bug.cgi?id=24514
--- Comment #6 from Nikolay Sivov <bunglehead at gmail.com> 2010-09-26 04:06:45 CDT ---
(In reply to comment #5)
>
> I get the following from LVM_SUBITEMHITTEST:
>
> -y coord return
>
> 37 to ?? 1
> 4 to 36 0
> -13 to 3 -1
> -30 to -14 -2
> -31 to -47 -3
> -48 to ?? -4
>
> which has a difference of 16 except for zero which is double this.
It's doubled cause you most likely have a header (could be switched off with
LVS_NOCOLUMNHEADER).
> The
> vertical spacing from LVM_GETITEMSPACING is 17 (off by one?). LVM_GETITEMRECT
> does appear to have an overlap as for me in this case as item 1 has top 37
> bottom 54, but item 0 has top 20 bottom 37. Perhaps LVM_GETITEMSPACING just
> subtracts these without taking the overlap into account.
Probably yes, this deserves a separate test (correspondence of returned spacing
and rectangle), could be affected by other styles too byt the way like grid for
example.
>
> I think this is enough to write a test.
Yes, please do. And feel free to ask if you get into some troubles with it.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list