VITA: Increase size of centerprint to be more readable

This commit is contained in:
cypress 2023-07-21 12:04:10 -04:00
parent 1d161d41a7
commit 9bfb2cc24d
3 changed files with 43 additions and 3 deletions

View file

@ -30,6 +30,7 @@ extern qpic_t *draw_disc; // also used on sbar
void Draw_Init (void);
void Draw_Character (int x, int y, int num);
void Draw_CharacterScale (int x, int y, int num, float scale);
void Draw_CharacterRGBA(int x, int y, int num, float r, float g, float b, float a); //sB
void Draw_DebugChar (char num);
void Draw_StretchPic (int x, int y, qpic_t *pic, int x_value, int y_value);

View file

@ -564,6 +564,24 @@ void Draw_Character (int x, int y, int num)
glEnd ();
}
void Draw_CharacterScale (int x, int y, int num, float scale)
{
if (y <= -8)
return; // totally off screen
num &= 255;
if (num == 32)
return; //don't waste verts on spaces
GL_Bind (char_texture);
glBegin (GL_QUADS);
Draw_CharacterQuadScale (x, y, (char) num, scale);
glEnd ();
}
/*
================
Draw_CharacterRGBA

View file

@ -484,15 +484,36 @@ void SCR_DrawCenterString (void) //actually do the drawing
for (l=0 ; l<40 ; l++)
if (start[l] == '\n' || !start[l])
break;
x = (320 - l*8)/2; //johnfitz -- 320x200 coordinate system
for (j=0 ; j<l ; j++, x+=8)
#ifndef VITA
int scale = 8;
#else
int scale = 16;
#endif // VITA
x = (320 - l*scale)/2; //johnfitz -- 320x200 coordinate system
for (j=0 ; j<l ; j++, x+=scale)
{
#ifndef VITA
Draw_Character (x, y, start[j]); //johnfitz -- stretch overlays
#else
Draw_CharacterScale(x, y, start[j], 2.0f);
#endif // VITA
if (!remaining--)
return;
}
y += 8;
y += scale;
while (*start && *start != '\n')
start++;