Show SVN revision in plugin title bars too.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@36 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-07-20 15:36:18 +00:00
parent 925e94dc7a
commit 4175db3aa3
4 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Version="8.00"
Name="Plugin_VideoDX9"
ProjectGUID="{636FAD5F-02D1-4E9A-BE67-FB8EA99B9A18}"
RootNamespace="Plugin_VideoDX9"

View File

@ -4,6 +4,7 @@
#include "Common.h"
#include "svnrev.h"
#include "resource.h"
#include "main.h"
#include "Globals.h"
@ -61,7 +62,9 @@ BOOL Callback_PeekMessages()
void UpdateFPSDisplay(const char *text)
{
SetWindowText(EmuWindow::GetWnd(), text);
char temp[512];
sprintf(temp, "SVN R%i: %s", SVN_REV, text);
SetWindowText(EmuWindow::GetWnd(), temp);
}
bool Init()

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Version="8.00"
Name="Plugin_VideoOGL"
ProjectGUID="{CFDCEE0E-FA45-4F72-9FCC-0B88F5A75160}"
RootNamespace="Plugin_VideoOGL"

View File

@ -16,6 +16,7 @@
// http://code.google.com/p/dolphin-emu/
#include "Globals.h"
#include "svnrev.h"
#ifdef _WIN32
#include "EmuWindow.h"
#endif
@ -81,7 +82,10 @@ BOOL Callback_PeekMessages()
void UpdateFPSDisplay(const char *text)
{
OpenGL_SetWindowText(text);
char temp[512];
sprintf(temp, "SVN R%i: %s", SVN_REV, text);
SetWindowText(EmuWindow::GetWnd(), temp);
OpenGL_SetWindowText(temp);
}