mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
Console: Adjust line length based on scale
This commit is contained in:
parent
5c54521199
commit
31ffb96614
1 changed files with 2 additions and 1 deletions
|
@ -261,8 +261,9 @@ Con_CheckResize(void)
|
|||
{
|
||||
int i, j, width, oldwidth, oldtotallines, numlines, numchars;
|
||||
char tbuf[CON_TEXTSIZE];
|
||||
float scale = SCR_GetConsoleScale();
|
||||
|
||||
width = (viddef.width >> 3) - 2;
|
||||
width = ((int)(viddef.width / scale) >> 3) - 2;
|
||||
|
||||
if (width == con.linewidth)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue