- Moved the vid_fps display to the upper-right of the screen.
- The stat display can now show multiple stats at once. SVN r328 (trunk)
This commit is contained in:
parent
76e94bde6b
commit
b951721c1b
4 changed files with 39 additions and 43 deletions
|
|
@ -188,6 +188,9 @@ void DCanvas::Clear (int left, int top, int right, int bottom, int color) const
|
|||
int x, y;
|
||||
BYTE *dest;
|
||||
|
||||
assert (left < right);
|
||||
assert (top < bottom);
|
||||
|
||||
dest = Buffer + top * Pitch + left;
|
||||
x = right - left;
|
||||
for (y = top; y < bottom; y++)
|
||||
|
|
@ -634,9 +637,9 @@ void DFrameBuffer::DrawRateStuff ()
|
|||
int chars;
|
||||
|
||||
chars = sprintf (fpsbuff, "%2u ms (%3u fps)", howlong, LastCount);
|
||||
Clear (0, screen->GetHeight() - 8, chars * 8, screen->GetHeight(), 0);
|
||||
Clear (Width - chars * 8, 0, Width, 8, 0);
|
||||
SetFont (ConFont);
|
||||
DrawText (CR_WHITE, 0, screen->GetHeight() - 8, (char *)&fpsbuff[0], TAG_DONE);
|
||||
DrawText (CR_WHITE, Width - chars * 8, 0, (char *)&fpsbuff[0], TAG_DONE);
|
||||
SetFont (SmallFont);
|
||||
|
||||
DWORD thisSec = ms/1000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue