View Single Post
Old 31 August 2017, 12:52   #18
chocsplease
Registered User
 
Join Date: Dec 2016
Location: london
Posts: 178
Quote:
Originally Posted by alkis View Post
I still don't get what you are trying to do!

Are you doing all this to avoid clipping? So, that PrintIText doesn't (over)write on window borders?
<snip>

Well not just that but it is my current problem .

I had no idea that you could set up a clip region like this, though it will take me a while to read though and understand the code you've so kindly posted.

Will this also work with SetRast(&rastPort, 0);? I'm hoping to use this to clear the window when someone swaps a disk.

Many thanks once again for such a great reply.

<edit>

Having looked at your code I'm a bit confused about the very last part ....

Code:
 if (reg) {
      InstallClipRegion(myWindow->WLayer, oldreg);
      DisposeRegion(reg);
    }
It looks like you are creating a new region just before you close the window? Or have I got the loops wrong? Could you explain this bit please?

Many thanks.

Last edited by chocsplease; 31 August 2017 at 13:25.
chocsplease is offline  
 
Page generated in 0.07347 seconds with 11 queries