From b25efd3b1fb8e78810ec561e5426e436759ddaa8 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Sat, 1 Dec 2007 12:55:29 +0000 Subject: [PATCH] center status messages & fps git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@125 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/Direct3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win32/Direct3D.cpp b/src/win32/Direct3D.cpp index 75b368bc..2127787c 100644 --- a/src/win32/Direct3D.cpp +++ b/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; }