Re: Win32lib and multiple displays
Pete Lomax wrote:
>
> On Wed, 06 Jul 2005 18:58:36 +1000, Craig Welch <euphoria at cwelch.org>
> wrote:
>
> >C:\EUPHORIA\include\Win32Lib.ew:32613 in procedure eventLoop()
> >bitwise operations are limited to 32-bit numbers
> >
> >Any suggestions (apart from "don't allow the mouse to stray")?
> For a quick fix, just comment out the lines:
> w32Seed = xor_bits(floor(w32Seed), peek4u(msg+16))
> w32Seed = xor_bits(floor(w32Seed), peek4u(msg+20) *
> peek4u(msg+24))
>
> This will stop getRandInt() working properly.
>
> I expect Derek will post a proper correction, possibly something like:
> w32Seed = xor_bits(floor(w32Seed),
> and_bits(peek4u(msg+20),#0FFF)*
> and_bits(peek4u(msg+24),#000FFFFF))
>
I have fixed this in the next release but I don't have access to that source
code just now, but it was something like ...
w32Seed = xor_bits(floor(w32Seed), remainder(peek4u(msg+16), #3FFFFFFF)
w32Seed = xor_bits(floor(w32Seed), remainder(peek4u(msg+20) *
peek4u(msg+24), #3FFFFFFF))
--
Derek Parnell
Melbourne, Australia
irc://irc.sorcery.net:9000/euphoria
|
Not Categorized, Please Help
|
|