[futurebasic] Re: [FB] gWorld #s

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2001 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Sat, 14 Apr 2001 23:59:56 -0500
<snips>
>I think this line is the culprit:
>myRowBytes1 = pmHandle1..RowBytes AND 0x3FFF

>I would guess that 0x3FF (3 15 15 15, right?) needs to be changed to
>something else for 8 bit...

I just did a search through all the FB 3 Examples...seems there are 19
different ways used to get rowbytes.  There is the
theworld.portbits.rowbytes, the mask approach above, so many others.

>One other possible spot of error (which I think I guess-corrected rightly):
>
>Pixel1 = baseAddr1 + (yy * myRowBytes1) + (xx)
>
>Originally, it was:
>Pixel1 = baseAddr1 + (yy * myRowBytes1) + (xx * 4)

<snip>

I mentioned that to you a while back I think. :)

>If you are really curious, or think I'm just a blundering newbie (true
>true...) then here's the full [faulty] function: (I checked  a normal
>drawing routine and it worked fine)
>
>//100% inspired & 99% written by Covington

I don't think I can (would?) claim 99% of that...50% maybe.

I only know enough to be dangerous, and I spout what little I know like a
flamethrower. ;)

rc