[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XAAES objc_draw() in USERDEF



Le 08/02/2013 00:18, Jo Even Skarstein a écrit :
On Thu, 2013-02-07 at 23:41 +0100, Ole wrote:

  AFAIK it's not allowed to call AES functions within an user-draw
  function,
  so the question is maybe obsolete.
Is this forbidden under XaAES? It's permitted in MagiC, I was hoping
that also XaAES was reentrant. Because calling objc_draw() from a
userdef is extremely useful, as it allows you to create "superobjects"
from existing objects.

Jo Even
Yes this is usefull I agree, for example it's not easy to draw CICON for application and some application as Zdesk need to manage text in CICON (for rename for example) that AES is not able to do, so the application have two solutions or draw itself CICON with VDI or do it by AES but the second solution is near impossible and complex in the second solution, the first solution is not easy too because there is 2 choices for the application, load CICON from RSC or file by itself or do a rsrc_load() by AES and then display with VDI the CICON, the first solution work but it's not easy, the second solution doesn't work and is dependant from the AES because AES manage as it want cicon internaly and this is not the same between each AES (it's why Zdesk not display correctly cicon under MyAES, replace the draw by objc_draw() work fine under MyAES but there is this small problem with clipping in this case)

Olivier