show version number on welcome screen

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1351 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-11 22:18:42 +00:00
parent ac2954c1ea
commit 0bc1c1af30
+7
View File
@@ -87,6 +87,13 @@ void WelcomeWindow::draw(DC& dc) {
// draw logo
dc.DrawBitmap(logo, (ws.GetWidth() - logo.GetWidth()) / 2, 5);
dc.DrawBitmap(logo2, ws.GetWidth() - logo2.GetWidth(), ws.GetHeight() - logo2.GetHeight());
// draw version number
dc.SetFont(wxFont(8, wxSWISS, wxNORMAL, wxNORMAL, false, _("Arial")));
dc.SetTextForeground(Color(0,126,176));
int tw,th;
String version_string = _("version ") + app_version.toString() + version_suffix;
dc.GetTextExtent(version_string,&tw,&th);
dc.DrawText(version_string, 4, ws.GetHeight()-th-4);
}
void WelcomeWindow::onOpenSet(wxCommandEvent&) {