Changed TAG_MORE parameter to a struct containing a va_list to ensure that no matter how va_list is defined the address can be taken.

SVN r119 (trunk)
This commit is contained in:
Christoph Oelckers 2006-05-16 10:06:23 +00:00
commit 4a8ca6d134
3 changed files with 17 additions and 12 deletions

View file

@ -103,7 +103,7 @@ void STACK_ARGS DCanvas::DrawTexture (FTexture *img, int x0, int y0, DWORD tags_
while (tag != TAG_DONE)
{
va_list *more_p;
TagMoreData *more_p;
DWORD data;
switch (tag)
@ -114,9 +114,9 @@ void STACK_ARGS DCanvas::DrawTexture (FTexture *img, int x0, int y0, DWORD tags_
break;
case TAG_MORE:
more_p = va_arg (tags, va_list*);
more_p = va_arg (tags, TagMoreData*);
va_end (tags);
tags = *more_p;
tags = more_p->tagdata;
break;
case DTA_DestWidth: