mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Make V_DrawRightAlignedSmallThinString() a less precise wrapper for V_DrawRightAlignedSmallThinStringAtFixed() for new "small-thin-right" option in v.drawString()
This commit is contained in:
parent
8dbdb75abc
commit
7a00a08a52
3 changed files with 8 additions and 2 deletions
|
|
@ -122,6 +122,7 @@ enum align {
|
||||||
align_smallcenter,
|
align_smallcenter,
|
||||||
align_smallright,
|
align_smallright,
|
||||||
align_smallthin,
|
align_smallthin,
|
||||||
|
align_smallthinright,
|
||||||
align_smallthinfixed,
|
align_smallthinfixed,
|
||||||
align_smallthinfixedcenter,
|
align_smallthinfixedcenter,
|
||||||
align_smallthinfixedright,
|
align_smallthinfixedright,
|
||||||
|
|
@ -146,6 +147,7 @@ static const char *const align_opt[] = {
|
||||||
"small-center",
|
"small-center",
|
||||||
"small-right",
|
"small-right",
|
||||||
"small-thin",
|
"small-thin",
|
||||||
|
"small-thin-right",
|
||||||
"small-thin-fixed",
|
"small-thin-fixed",
|
||||||
"small-thin-fixed-center",
|
"small-thin-fixed-center",
|
||||||
"small-thin-fixed-right",
|
"small-thin-fixed-right",
|
||||||
|
|
@ -785,6 +787,9 @@ static int libd_drawString(lua_State *L)
|
||||||
case align_smallthin:
|
case align_smallthin:
|
||||||
V_DrawSmallThinString(x, y, flags, str);
|
V_DrawSmallThinString(x, y, flags, str);
|
||||||
break;
|
break;
|
||||||
|
case align_smallthinright:
|
||||||
|
V_DrawRightAlignedSmallThinString(x, y, flags, str);
|
||||||
|
break;
|
||||||
case align_smallthinfixed:
|
case align_smallthinfixed:
|
||||||
V_DrawSmallThinStringAtFixed(x, y, flags, str);
|
V_DrawSmallThinStringAtFixed(x, y, flags, str);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -2435,12 +2435,12 @@ void V_DrawSmallThinString(INT32 x, INT32 y, INT32 option, const char *string)
|
||||||
V_DrawSmallThinStringAtFixed((fixed_t)x, (fixed_t)y, option, string);
|
V_DrawSmallThinStringAtFixed((fixed_t)x, (fixed_t)y, option, string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*void V_DrawRightAlignedSmallThinString(INT32 x, INT32 y, INT32 option, const char *string)
|
void V_DrawRightAlignedSmallThinString(INT32 x, INT32 y, INT32 option, const char *string)
|
||||||
{
|
{
|
||||||
x <<= FRACBITS;
|
x <<= FRACBITS;
|
||||||
y <<= FRACBITS;
|
y <<= FRACBITS;
|
||||||
V_DrawRightAlignedSmallThinStringAtFixed((fixed_t)x, (fixed_t)y, option, string);
|
V_DrawRightAlignedSmallThinStringAtFixed((fixed_t)x, (fixed_t)y, option, string);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
// Draws a string at a fixed_t location.
|
// Draws a string at a fixed_t location.
|
||||||
void V_DrawStringAtFixed(fixed_t x, fixed_t y, INT32 option, const char *string)
|
void V_DrawStringAtFixed(fixed_t x, fixed_t y, INT32 option, const char *string)
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,7 @@ void V_DrawRightAlignedThinString(INT32 x, INT32 y, INT32 option, const char *st
|
||||||
|
|
||||||
// draw a string using the tny_font, 0.5x scale
|
// draw a string using the tny_font, 0.5x scale
|
||||||
void V_DrawSmallThinString(INT32 x, INT32 y, INT32 option, const char *string);
|
void V_DrawSmallThinString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||||
|
void V_DrawRightAlignedSmallThinString(INT32 x, INT32 y, INT32 option, const char *string);
|
||||||
|
|
||||||
// draw a string using the hu_font at fixed_t coordinates
|
// draw a string using the hu_font at fixed_t coordinates
|
||||||
void V_DrawStringAtFixed(fixed_t x, fixed_t y, INT32 option, const char *string);
|
void V_DrawStringAtFixed(fixed_t x, fixed_t y, INT32 option, const char *string);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue