mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- fixed: Since no DrawText calls actually use the non-functional DTA_DestWidth, DTA_DestHeight or DTA_Translation and GCC cannot handle the fudging of the varargs, these will now trigger an assertion. No need to try to make something work that's always a programming error.
This commit is contained in:
parent
a5a17e45cf
commit
14d7b8b777
1 changed files with 2 additions and 9 deletions
|
@ -128,7 +128,6 @@ void DCanvas::DrawTextV(FFont *font, int normalcolor, int x, int y, const char *
|
|||
{
|
||||
va_list *more_p;
|
||||
DWORD data;
|
||||
void *ptrval;
|
||||
|
||||
switch (tag)
|
||||
{
|
||||
|
@ -150,15 +149,9 @@ void DCanvas::DrawTextV(FFont *font, int normalcolor, int x, int y, const char *
|
|||
// We don't handle these. :(
|
||||
case DTA_DestWidth:
|
||||
case DTA_DestHeight:
|
||||
*(DWORD *)tags = TAG_IGNORE;
|
||||
data = va_arg (tags, DWORD);
|
||||
break;
|
||||
|
||||
// Translation is specified explicitly by the text.
|
||||
case DTA_Translation:
|
||||
*(DWORD *)tags = TAG_IGNORE;
|
||||
ptrval = va_arg (tags, void*);
|
||||
break;
|
||||
assert("Bad parameter for DrawText" && false);
|
||||
return;
|
||||
|
||||
case DTA_CleanNoMove_1:
|
||||
boolval = va_arg (tags, INTBOOL);
|
||||
|
|
Loading…
Reference in a new issue