[vorbis-dev] fix for oggdrop disappearing window

Anish Dave adave at undergrad.math.uwaterloo.ca
Sat May 5 20:48:15 PDT 2001


Hi,

I don't know if this problem has been looked at yet.  The latest version of
oggdrop I found was at
http://www.vorbis.com/files/beta4/windows/oggdrop-1.0beta4.zip.  If you whip
the window quickly from right to left, the client mouse coordinate in
WM_MOUSEMOVE *can* be negative and so the LOWORD and HIWORD macros will cast
the mouse coordinates to insanely high 64K-ish values.  Then the
SetWindowPos moves the window into lala land never to be seen again.  I
don't think windows should ever give you a neg client coordinate, but it
does (maybe it's a win2k thing).

The attached patch just uses LOSHORT and HISHORT macros (signed versions of
the LO/HI WORD macros) instead.  Let me know if it makes sense.

- btw, to reproduce the bug, grab the window and whip around like mad until
it disappears.

Thanks,
Anish Dave
Comp Sci/Soft Eng
Univ of Waterloo (recent grad!)
adave at undergrad.math.uwaterloo.ca


<HR NOSHADE>
<UL>
<LI>application/octet-stream attachment: main.diff
</UL>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.diff
Type: application/octet-stream
Size: 770 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20010505/ad792607/main.obj


More information about the Vorbis-dev mailing list