From b27cb0e81ca25b4821152ea45426410882ff7383 Mon Sep 17 00:00:00 2001 From: skidau Date: Wed, 29 Apr 2015 01:30:31 +0000 Subject: [PATCH] Added the SVN rev to the window title. Used GBA resolution as the default window size. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1372 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/panel.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index be10378f..7242e743 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -8,6 +8,7 @@ #include #include "../sdl/text.h" #include "filters.h" +#include "../../svnrev.h" int emulating; @@ -15,7 +16,7 @@ IMPLEMENT_DYNAMIC_CLASS(GameArea, wxPanel) GameArea::GameArea() : wxPanel(), loaded(IMAGE_UNKNOWN), panel(NULL), emusys(NULL), - basic_width(GBWidth), basic_height(GBHeight), fullscreen(false), + basic_width(GBAWidth), basic_height(GBAHeight), fullscreen(false), paused(false), was_paused(false), rewind_time(0), do_rewind(false), rewind_mem(0), pointer_blanked(false), mouse_active_time(0) { @@ -334,12 +335,13 @@ void GameArea::LoadGame(const wxString &name) void GameArea::SetFrameTitle() { - wxString tit; + wxString tit = wxT(""); if(loaded != IMAGE_UNKNOWN) { - tit = wxT("VBA-M "); - tit.append(loaded_game.GetFullName()); - } else - tit = wxT("VisualBoyAdvance-M "); + tit.append(loaded_game.GetFullName()); + tit.append(wxT(" - ")); + } + tit.append(wxT("VisualBoyAdvance-M ")); + tit.append(wxT(SVN_REV_STR)); #ifndef NO_LINK int playerId = GetLinkPlayerId(); if (playerId >= 0) {