Christopher Barker wrote:
> Christopher Barker wrote:
>>> Are you saying I'll be able to follow the code and figure out how to 
>>> enable HitTest for a color depth of 16?
>>
>> I think the solution is for the color generator to actually draw the 
>> color to a small bitmap, then check the pixel color, and see what it 
>> comes back as -- then store that color as the index for the hot-test. 
>> Or maybe it would be easier to test if the color comes back the same, 
>> and reject it if it doesn't, then no other code would have to change.
> 
> Paul,
> 
> Enclosed is a test file that may help. It should be in FloatCnvas SVN, 
> in the Tests dir, but just in case, here it is.

I'll look for it in Tests (I'm tracking SVN instead of the included 
wx.lib.floatcanvas). Thanks!


> I can't fix it here, as wx doesn't seem to support creating a bitmap in 
> a different depth than the native one, and I don't' have any 16 bit 
> systems.

I can switch easily between depths by modifying my xorg.conf, so I'll see what 
I can 
come up with today.

Paul
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to