On Sat, 1 Apr 2006, Emmanuel Vasilakis wrote: > Hi, > > I'm building an app (my first one with MUI) which uses guigfx.mcc to > display images. > > Problem is that although at startup the first image displays correctly, > when I do a set(IM, MUIA_Guigfx_FileName, "New image") although it loads > the image, it doesnt display it correcly (colours are messed up). > > It seems it needs a "refresh" or something, because if I slightly alter > the window's size, it displays ok, or if I do a ShowMe False and then a > ShowMe TRUE, it again displays ok. > > I've tried sending a MUI_Redraw to the object, but no luck. Guigfx.mcc > author says (and it's on the sources) that the mcc does a MUIM_draw when > the filename changes. > > is there something I can do to force a refresh or something? Any other > ideas?
Looks like remapping is bogus. Resizing window triggers new MUIM_Setup/MUIM_Show methods and this is often used to remap pictures. Sounds like the author tested his class on gfx card only (with Hi/Truecolor screens) but didnt consider palette based screen on AGAs... Simple MUIM_Draw (which is triggered by MUI_Redraw()) is not enough. Nevertheless the bug is in guigfx.mcc. You could try MUIM_Group_InitChange/ExitChange pair on parent group class... it is better than using ShowMe hack. Ilkka Visit http://www.amiga.dk/tumult for MUI-related information, especially about MUI custom classes. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/MUI/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
