From e0147ac743e5d8c4c9a09e07f2d310a0e63e6a80 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sat, 1 Dec 2007 12:55:29 +0000 Subject: [PATCH] center status messages & fps --- trunk/src/win32/Direct3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/win32/Direct3D.cpp b/trunk/src/win32/Direct3D.cpp index 75b368bc..2127787c 100644 --- a/trunk/src/win32/Direct3D.cpp +++ b/trunk/src/win32/Direct3D.cpp @@ -500,13 +500,13 @@ void Direct3DDisplay::render() sprintf( buffer, "%3d%%(%d, %d fps)", systemSpeed, systemFrameSkip, theApp.showRenderedFrames ); } - pFont->DrawText( NULL, buffer, -1, &r, DT_LEFT | DT_TOP, color ); + pFont->DrawText( NULL, buffer, -1, &r, DT_CENTER | DT_TOP, color ); } if( theApp.screenMessage ) { color = theApp.showSpeedTransparent ? D3DCOLOR_ARGB(0x7F, 0xFF, 0x00, 0x00) : D3DCOLOR_ARGB(0xFF, 0xFF, 0x00, 0x00); if( ( ( GetTickCount() - theApp.screenMessageTime ) < 3000 ) && !theApp.disableStatusMessage && pFont ) { - pFont->DrawText( NULL, theApp.screenMessageBuffer, -1, &r, DT_LEFT | DT_BOTTOM, color ); + pFont->DrawText( NULL, theApp.screenMessageBuffer, -1, &r, DT_CENTER | DT_BOTTOM, color ); } else { theApp.screenMessage = false; }