- 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:
Randy Heit 2007-01-22 23:14:00 +00:00
commit 0b5e4b1f1f
4 changed files with 21 additions and 19 deletions

View file

@ -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;