mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Make titlebar and about dialog fancy for cmake build.
Windows needs fixing.
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "Common.h"
|
||||
#include "AboutDolphin.h"
|
||||
#include "../resources/dolphin_logo.cpp"
|
||||
#include "scmrev.h"
|
||||
|
||||
AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
||||
const wxString &title, const wxPoint &position,
|
||||
@ -29,9 +30,13 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
|
||||
wxStaticBitmap* const sbDolphinLogo = new wxStaticBitmap(this, wxID_ANY,
|
||||
wxBitmap(iDolphinLogo));
|
||||
|
||||
std::string Text = std::string(svn_rev_str) + "\n"
|
||||
std::string Text = "Dolphin " SCM_DESC_STR "\n"
|
||||
"Copyright (c) 2003-2011+ Dolphin Team\n"
|
||||
"\n"
|
||||
"Branch: " SCM_BRANCH_STR "\n"
|
||||
"Revision: " SCM_REV_STR "\n"
|
||||
"Date: " __DATE__ " @ " __TIME__ "\n"
|
||||
"\n"
|
||||
"Dolphin is a Gamecube/Wii emulator, which was\n"
|
||||
"originally written by F|RES and ector.\n"
|
||||
"Today Dolphin is an open source project with many\n"
|
||||
|
@ -1073,7 +1073,7 @@ void CFrame::DoStop()
|
||||
X11Utils::InhibitScreensaver(X11Utils::XDisplayFromHandle(GetHandle()),
|
||||
X11Utils::XWindowFromHandle(GetHandle()), false);
|
||||
#endif
|
||||
m_RenderFrame->SetTitle(wxString::FromAscii(svn_rev_str));
|
||||
m_RenderFrame->SetTitle(wxString::FromAscii(scm_rev_str));
|
||||
|
||||
// Destroy the renderer frame when not rendering to main
|
||||
m_RenderParent->Disconnect(wxID_ANY, wxEVT_SIZE,
|
||||
|
@ -274,7 +274,7 @@ bool DolphinApp::OnInit()
|
||||
#endif
|
||||
|
||||
main_frame = new CFrame((wxFrame*)NULL, wxID_ANY,
|
||||
wxString::FromAscii(svn_rev_str),
|
||||
wxString::FromAscii(scm_rev_str),
|
||||
wxPoint(x, y), wxSize(w, h),
|
||||
UseDebugger, BatchMode, UseLogger);
|
||||
SetTopWindow(main_frame);
|
||||
|
@ -294,13 +294,13 @@ int main(int argc, char* argv[])
|
||||
help = 1;
|
||||
break;
|
||||
case 'v':
|
||||
fprintf(stderr, "%s\n", svn_rev_str);
|
||||
fprintf(stderr, "%s\n", scm_rev_str);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (help == 1 || argc == optind) {
|
||||
fprintf(stderr, "%s\n\n", svn_rev_str);
|
||||
fprintf(stderr, "%s\n\n", scm_rev_str);
|
||||
fprintf(stderr, "A multi-platform Gamecube/Wii emulator\n\n");
|
||||
fprintf(stderr, "Usage: %s [-e <file>] [-h] [-v]\n", argv[0]);
|
||||
fprintf(stderr, " -e, --exec Load the specified file\n");
|
||||
|
Reference in New Issue
Block a user