Welcome, Guest. Please login or register.

Author Topic: MUI Custom Classes and Clipping  (Read 1425 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline evenmoreTopic starter

  • Newbie
  • *
  • Join Date: Dec 2003
  • Posts: 8
    • http://www.evenmore.co.uk
MUI Custom Classes and Clipping
« on: October 06, 2015, 10:46:33 AM »
Hi everyone :)

I'm having a bit of difficulty with my custom class that I have created in MUI.

I get the MADF_DRAWUPDATE notification from MUI to render my class, and the actual rendering is working fine. But whenever I add the Mui_AddClipping() and Mui_RemoveClipping() before and after drawing to restrict the drawing to the class area, it causes a crash.

I haven't managed to find much documentation on these MUI commands. I do see in the Amiga autodocs that it is illegal to clip a window between a BeginRefresh()/EndRefresh() pair and wondered if this is what is happening?

Any information on this would be greatly appreciated!

Thanks,
   Chris
 

Offline evenmoreTopic starter

  • Newbie
  • *
  • Join Date: Dec 2003
  • Posts: 8
    • http://www.evenmore.co.uk
Re: MUI Custom Classes and Clipping
« Reply #1 on: October 09, 2015, 11:09:23 PM »
Discovered that Mui_AddClipping() seems to work on OS3 and MorphOS, only get a crash on OS4. I am starting to think it is either a bug in the OS4 port of MUI, or else a bug in the WinUAE PPC emulation.
 

Offline evenmoreTopic starter

  • Newbie
  • *
  • Join Date: Dec 2003
  • Posts: 8
    • http://www.evenmore.co.uk
Re: MUI Custom Classes and Clipping
« Reply #2 on: October 19, 2015, 06:11:00 PM »
I figured it out. The ECX muimaster module was out of date, and wasn't compatible with the new MUI 4 on OS4. I recompiled it from the XML file in the MUI SDK and that did the trick.