Skip to content

Commit

Permalink
apply AROS modernization changes (#12)
Browse files Browse the repository at this point in the history
* Update muiaros.h from current build.
* TheButton class AROS changes
* TheBar class AROS changes
* TheBar.mcp class AROS changes
* Other AROS changes
* Use SIPTR as original code was using LONG. Added define for other platform.
* Support buttons with MUIA_TheBar_Attr_Sleep == TRUE
  • Loading branch information
deadwood2 authored Feb 15, 2024
1 parent ad08f05 commit 7bddc42
Show file tree
Hide file tree
Showing 19 changed files with 2,939 additions and 1,248 deletions.
8 changes: 4 additions & 4 deletions aros/s/mmakefile.src
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# $Id$

include $(TOP)/config/make.cfg
include $(SRCDIR)/config/aros-contrib.cfg

FILES := Package-Startup Package-Shutdown

#MM- contrib-zune-classes-thebar-startup : workbench-prefs-envarc contrib-zune-classes-thebar-startupfiles contrib-zune-classes-thebar-envpackage
#MM- contrib-zune-classes-thebar-startup : workbench-prefs-envarc contrib-zune-classes-thebar-startupfiles \
#MM contrib-zune-classes-thebar-envpackage

#MM
contrib-zune-classes-thebar-envpackage :
Expand All @@ -14,6 +15,5 @@ contrib-zune-classes-thebar-envpackage :
#MM- contrib-zune-classes-thebar-mccv : contrib-zune-classes-thebar-startup
#MM- contrib-zune-classes-thebar-mcp : contrib-zune-classes-thebar-startup

#MM contrib-zune-classes-thebar-startupfiles :
%copy_files_q dst=$(CONTRIBDIR)/Zune/MCC_TheBar/s maketarget=contrib-zune-classes-thebar-startupfiles
%copy_files_q mmake=contrib-zune-classes-thebar-startupfiles dst=$(AROS_CONTRIB)/Zune/MCC_TheBar/s

9 changes: 9 additions & 0 deletions demo/demo7.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ struct Library *MUIMasterBase;
/***********************************************************************/

#if !defined(__MORPHOS__)
#ifdef __AROS__
Object * DoSuperNew(struct IClass *cl, Object *obj, IPTR tag1, ...)
{
AROS_SLOWSTACKTAGS_PRE_AS(tag1, Object *)
retval = (Object *)DoSuperMethod(cl, obj, OM_NEW, AROS_SLOWSTACKTAGS_ARG(tag1));
AROS_SLOWSTACKTAGS_POST
}
#else
Object * VARARGS68K DoSuperNew(struct IClass *cl, Object *obj, ...)
{
Object *rc;
Expand All @@ -70,6 +78,7 @@ Object * VARARGS68K DoSuperNew(struct IClass *cl, Object *obj, ...)
return rc;
}
#endif
#endif

/***********************************************************************/

Expand Down
5 changes: 2 additions & 3 deletions demo/mmakefile.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $Id$

include $(TOP)/config/make.cfg
include $(SRCDIR)/config/aros-contrib.cfg

#MM contrib-zune-classes-thebar-demos : includes linklibs \
#MM contrib-zune-classes-thebar-mcc contrib-zune-classes-thebar-mccv \
Expand All @@ -24,8 +24,7 @@ USER_CFLAGS := -DNO_INLINE_STDARG
USER_CFLAGS += $(PARANOIA_CFLAGS)

%build_progs mmake=contrib-zune-classes-thebar-demos files=$(FILES) \
targetdir=$(TARGETDIR) \
uselibs="amiga mui"
targetdir=$(TARGETDIR)

#MM
contrib-zune-classes-thebar-pics :
Expand Down
Loading

0 comments on commit 7bddc42

Please sign in to comment.