[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] permanent solution for redraw menu issue



Hi,

On keskiviikko 12 syyskuu 2012, Eero Tamminen wrote:
> On maanantai 10 syyskuu 2012, Eero Tamminen wrote:
> > On keskiviikko 05 syyskuu 2012, Eero Tamminen wrote:
> > > The real problem is that there's no flag to tell that a window
> > > should be fullscreen (no menubar, no borders etc).  With that
> > > information, AES could handle redraws after window closes just
> > > fine.

While AES redrawing menubar when form_dial co-ordinates covered
menubar would need even less changes to applications...


> > Without that, the kludge needed to get menubar drawn looks like this
> > (XaAES seems to require full menu, just few root OBJECTs wasn't
> > enough):
> > ----------------------------------------
> ...
> > ----------------------------------------
> 
> Above wasn't full menu structure, it was lacking ACC entries.
> 
> Apparently that causes Desktop to freeze with some applications
> under XaAES (and caused bus errors with some single TOSes), when
> calling menu_bar().  This is although the ACC entries aren't even shown
> on screen as a result of calling menu_bar(), just the menu headings.
> 
> > Not particularly pretty, but feel free to copy it if you bump into
> > same problem...

That code was AHCC (+ Pure-C?) aes.h specific.  It didn't
build with GCC.

Updated static menu structure + couple of defines for AHCC allow it to
be compiled with both GEMlib and AHCC aes.h.  You can find it from here:
  http://koti.mbnet.fi/tammat/hatari/programs.shtml#filler

(See "str_menu", "menu_tree" and related defines in filler.c.)


	- Eero