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

Re: [MiNT] cflib screen locking



Jo Even Skarstein a écrit :
OL wrote:

Why do you need to do wind_update(BEG_UPDATE) before fsel_input() ?

On single TOS there is no need to lock anything and lock screen on

This is not entirely correct. Under TOS a desk accessory can mess up the
 fileselector if the screen is not locked first. But a lot of
applications doesn't do this.

I never think about accessory , I look in Emutos source and yes it looks possible because the form_do() use the evnt_multi() so it is possible TOS swap threads. So yes you have true. Oups!

Notice you can know if you are in multitask AES or not by using return
on appl_init() if -1 this is multitask.

You mean aesglobal[1], right? appl_init() returns the apid of the
application, -1 indicates an error.
Yes totaly true

Btw this value can not be trusted. N.AES can be configured to put any
value into this, and IIRC older versions of MagiC put a positive value
here (perhaps because it actually had a limit on the number of
concurrent applications).
Oh yes I never see this, but possible, I have start with Magic 5 if I remember and it return -1.

Olivier


Jo Even