mergAV uses GLOBAL coordinates?

Klaus major-k klaus at major-k.de
Tue Nov 15 14:42:21 EST 2022


Hi all,

looks like this is a known bug:
<https://quality.livecode.com/show_bug.cgi?id=22734>

> Am 15.11.2022 um 20:17 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi Brian,
> 
> I now have the proof that mergAV DOES in fact needs global coordinates.
> Thanks for that, Matthias!
> 
> This (as found in the dictionary) gives you the offset:
> ...
> mergAVCamSet "rect",the rect of graphic "qr_ios"
> ...
> 
> However THIS is neccessary to make it work correctly:
> ...
> put the topleft of grc "qr_ios" into tRect1
> put the bottomright of grc "qr_ios" into tRect2
> put globalloc((tRect1)) & "," && globalloc((tRect2)) into tRect
> mergAVCamSet "rect",tRect
> ...
> I really wonder why noone noticed this before!?

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list