- Changed TAG_MORE to pass a va_list pointer instead of a va_list because it's a
non-POD type when targeting several non-ix86 targets with GCC. Hopefully this works. SVN r80 (trunk)
This commit is contained in:
parent
e78385f807
commit
fd0c5a6db6
6 changed files with 40 additions and 14 deletions
|
|
@ -1746,7 +1746,10 @@ void FIMGZTexture::MakeTexture ()
|
|||
}
|
||||
}
|
||||
|
||||
if (Spans == NULL) Spans = CreateSpans (Pixels);
|
||||
if (Spans == NULL)
|
||||
{
|
||||
Spans = CreateSpans (Pixels);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1976,7 +1979,10 @@ void FPNGTexture::MakeTexture ()
|
|||
delete[] oldpix;
|
||||
}
|
||||
}
|
||||
if (Spans == NULL) Spans = CreateSpans (Pixels);
|
||||
if (Spans == NULL)
|
||||
{
|
||||
Spans = CreateSpans (Pixels);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -2232,7 +2238,10 @@ void FMultiPatchTexture::MakeTexture ()
|
|||
Parts[i].OriginX, Parts[i].OriginY);
|
||||
}
|
||||
|
||||
if (Spans == NULL) Spans = CreateSpans (Pixels);
|
||||
if (Spans == NULL)
|
||||
{
|
||||
Spans = CreateSpans (Pixels);
|
||||
}
|
||||
}
|
||||
|
||||
void FMultiPatchTexture::CheckForHacks ()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
va_list *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, va_list*);
|
||||
va_end (tags);
|
||||
tags = more_p;
|
||||
tags = *more_p;
|
||||
break;
|
||||
|
||||
case DTA_DestWidth:
|
||||
|
|
|
|||
|
|
@ -1082,7 +1082,10 @@ void FFontChar2::MakeTexture ()
|
|||
I_FatalError ("The font %s is corrupt", name);
|
||||
}
|
||||
|
||||
Spans = CreateSpans (Pixels);
|
||||
if (Spans == NULL)
|
||||
{
|
||||
Spans = CreateSpans (Pixels);
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ void STACK_ARGS DCanvas::DrawChar (int normalcolor, int x, int y, byte character
|
|||
const BYTE *range = Font->GetColorTranslation ((EColorRange)normalcolor);
|
||||
va_list taglist;
|
||||
va_start (taglist, character);
|
||||
DrawTexture (pic, x, y, DTA_Translation, range, TAG_MORE, taglist);
|
||||
DrawTexture (pic, x, y, DTA_Translation, range, TAG_MORE, &taglist);
|
||||
va_end (taglist);
|
||||
}
|
||||
}
|
||||
|
|
@ -125,7 +125,7 @@ void STACK_ARGS DCanvas::DrawText (int normalcolor, int x, int y, const char *st
|
|||
|
||||
while (tag != TAG_DONE)
|
||||
{
|
||||
va_list more_p;
|
||||
va_list *more_p;
|
||||
DWORD data;
|
||||
void *ptrval;
|
||||
|
||||
|
|
@ -137,10 +137,10 @@ void STACK_ARGS DCanvas::DrawText (int normalcolor, int x, int y, const char *st
|
|||
break;
|
||||
|
||||
case TAG_MORE:
|
||||
more_p = va_arg (tags, va_list);
|
||||
more_p = va_arg (tags, va_list*);
|
||||
va_end (tags);
|
||||
tags = more_p;
|
||||
break;;
|
||||
tags = *more_p;
|
||||
break;
|
||||
|
||||
case DTA_DestWidth:
|
||||
case DTA_DestHeight:
|
||||
|
|
@ -228,7 +228,7 @@ void STACK_ARGS DCanvas::DrawText (int normalcolor, int x, int y, const char *st
|
|||
{
|
||||
va_list taglist;
|
||||
va_start (taglist, string);
|
||||
DrawTexture (pic, cx, cy, DTA_Translation, range, TAG_MORE, taglist);
|
||||
DrawTexture (pic, cx, cy, DTA_Translation, range, TAG_MORE, &taglist);
|
||||
va_end (taglist);
|
||||
}
|
||||
cx += (w + kerning) * scalex;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue