Re: Re: mouse cursor problems
Nadav Frum <[email protected]>
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <Pine.LNX.4.44_heb2.10.0402211154150.25904-100000@localhost.localdomain> |
On Fri, 20 Feb 2004, Gregory S. Hayes wrote: > Oddly in winex 3.3 the mose gets stuck in the lower left corner instead > of the upper left. I don't think it is odd. The warping mechanism places the cursor at the middle of the window. If there is no window handle the window coordinates are not initialised. If they are not initialised the values used in the warp could be any value which a short data type can hold. Before those values were hugely negative. Now they are probably hugely positive. My patch (with Ove's DISCL_NONEXCLUSIVE correction) should place your cursor at the middle of the window. There is complete agreement between Ove and me that the window handle should be initialized. If we were dealing with memory addresses instead of window coordinates WineX would have crashed with an EXCEPTION_ACCESS_VIOLATION.