Amiga.org
Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: evenmore 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
-
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.
-
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.