- Changed the vertheight and rounding-error-checking code in
DCanvas::DrawTexture() to calculate off the actual bottom of the image instead of the height, improving precision. Now the scaled status bar is flush with the bottom of the screen at 1280x1024, for instance. SVN r458 (trunk)
This commit is contained in:
parent
b4390308df
commit
0b5e4b1f1f
4 changed files with 21 additions and 19 deletions
|
|
@ -921,11 +921,6 @@ void FBaseStatusBar::RefreshBackground () const
|
|||
R_DrawBorder (0, y, x, SCREENHEIGHT);
|
||||
R_DrawBorder (x2, y, SCREENWIDTH, SCREENHEIGHT);
|
||||
|
||||
if (Scaled && ::ST_Y + RelTop*SCREENHEIGHT/200 != SCREENHEIGHT)
|
||||
{ // Fill the thin line beneath the status bar that we got thanks to rounding error
|
||||
R_DrawBorder (x, SCREENHEIGHT-1, x2, SCREENHEIGHT);
|
||||
}
|
||||
|
||||
if (setblocks >= 10)
|
||||
{
|
||||
const gameborder_t *border = gameinfo.border;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue