Blitz (98/218)

From:David McMinn
Date:17 Aug 2001 at 12:08:13
Subject:Re: Clipprint

Hi amorel

> C=I don't remember anything that severe in the RKRMs but I could be wrong :)
>
> I have looked up the bit of text I meant:
>
> Warning:
> --------
>
> Layers may not be created or used directly with intuition screens. Intuition
> windows are the only supported method of adding layers to Intuition screens.
> Only the layer locking and unlocking functions are safe to use with Intuition.
> An application must create and manage its own view if it will be creating
> layers directly on the display.

Ahh, I seen that, but didn't think it was what you meant :)

> My interpretation of this is that ione can/may only create layers by creating
> windows, thus indirectly. Though as I read it now I think it might mean that u
> can/may only create layers through your window. But what about only using
> lokcing and unlocking functions?

Yes, you can create layers over your own windows as much as you like, but
to add a layer to a screen you should open a window. So you are doing it
indirectly for screens, but you can do it directly for windows.

I guess the warning is like that because screens need to be shared
between different programs, and so intuition needs to take care of
redrawing the screens. Windows are generally owned by your own program
(and normally only one program) so you can do anything you like to them.

Locking and unlocking layers I'm not sure about, but they don't create
any layers. They only make sure that only one task is writing to a layer
at any time (which I guess helps in some possible race/deadlock
situations, although I'm not sure what they'd be).

But it doesn't really matter, it was only the clipping area of the layer
I was changing, not creating any layers :)



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
Earth is full, Go home.

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie