The OS3 build doesn't appear to like non-specific layout groups

This commit is contained in:
Chris Young 2015-01-19 00:22:22 +00:00
parent 73b158d27d
commit 15537aa2af
2 changed files with 5 additions and 2 deletions

View File

@ -5155,7 +5155,7 @@ Object *ami_gui_splash_open(void)
WINDOW_Position, WPOS_CENTERSCREEN,
WINDOW_LockWidth, TRUE,
WINDOW_LockHeight, TRUE,
WINDOW_ParentGroup, LayoutObject,
WINDOW_ParentGroup, VGroupObject,
LAYOUT_AddImage, bm_obj = BitMapObject,
BITMAP_SourceFile, "PROGDIR:Resources/splash.png",
BITMAP_Screen, wbscreen,

View File

@ -79,15 +79,18 @@ uint32 GetAttrs(Object *obj, Tag tag1, ...)
va_list ap;
Tag tag = tag1;
ULONG data = 0;
int i = 0;
va_start(ap, tag1);
while(tag != TAG_DONE) {
data = va_arg(ap, ULONG);
GetAttr(tag, obj, (void *)data);
i += GetAttr(tag, obj, (void *)data);
tag = va_arg(ap, Tag);
}
va_end(ap);
return i;
}
/* Utility */