BitBlt copyBits rule 32 not working?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

BitBlt copyBits rule 32 not working?

Gonzalo Romano
Hi i'm trying to use BitBlt to compare images, but when i use

BitBlt>>copy: destRectangle from: sourcePt in: srcForm fillColor: hf rule:  
rule

with rule = 32(rgbDiff: sourceWord with: destWord) , it allways returns  
zero...

rule 22 old rgbDiff seems to work just fine...

I'm using 3.8 dev image and a custom windows vm, but i also tried it with  
3.10 and last available vm with the same results..

--
Saludos
Gonzalo
Romano

Reply | Threaded
Open this post in threaded view
|

Re: BitBlt copyBits rule 32 not working?

David T. Lewis
On Fri, Nov 13, 2009 at 10:27:47AM -0300, Gonzalo Romano wrote:

> Hi i'm trying to use BitBlt to compare images, but when i use
>
> BitBlt>>copy: destRectangle from: sourcePt in: srcForm fillColor: hf rule:  
> rule
>
> with rule = 32(rgbDiff: sourceWord with: destWord) , it allways returns  
> zero...
>
> rule 22 old rgbDiff seems to work just fine...
>
> I'm using 3.8 dev image and a custom windows vm, but i also tried it with  
> 3.10 and last available vm with the same results..

Check and see if it related to this:

  http://bugs.squeak.org/view.php?id=7407

The fixes for this are in recent VMMaker, but probably not in any of the
distributed VMs.

Dave