From 3114c27143b75bf8c3a79d9a1704a98a2486312b Mon Sep 17 00:00:00 2001 From: Laurence Muller Date: Sat, 26 Jul 2008 21:44:01 +0000 Subject: [PATCH] fontsize fix for linux (from gigaherz). Logo is still greyscale ;(... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@88 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_nJoy_SDL/Src/GUI/AboutBox.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_nJoy_SDL/Src/GUI/AboutBox.cpp b/Source/Plugins/Plugin_nJoy_SDL/Src/GUI/AboutBox.cpp index 840fe2f560..16fc5e540a 100644 --- a/Source/Plugins/Plugin_nJoy_SDL/Src/GUI/AboutBox.cpp +++ b/Source/Plugins/Plugin_nJoy_SDL/Src/GUI/AboutBox.cpp @@ -54,9 +54,16 @@ void AboutBox::CreateGUIControls() { SetTitle(wxT("About: nJoy Input Plugin")); SetIcon(wxNullIcon); - SetSize(8,8,200,399); + //SetSize(8,8,200,399); + SetClientSize(200,376); Center(); - + +#ifndef _WIN32 + // Force a 8pt font so that it looks more or less "correct" regardless of the default font setting + wxFont f(8,wxFONTFAMILY_DEFAULT,wxFONTSTYLE_NORMAL,wxFONTWEIGHT_NORMAL); + SetFont(f); +#endif + m_thankyoutext = new wxStaticText(this, ID_THANKYOU, wxT(THANKYOU), wxPoint(18,196), wxDefaultSize, 0, wxT(THANKYOU)); m_thankyoutext->Wrap(167); @@ -64,7 +71,7 @@ void AboutBox::CreateGUIControls() m_pluginversion = new wxStaticText(this, ID_PLUGINVERSION, wxT("nJoy v"INPUT_VERSION" by Falcon4ever\n" "Release: "RELDAY"/"RELMONTH"/"RELYEAR"\n" "www.multigesture.net"), wxPoint(18,80), wxDefaultSize, 0, wxT("nJoy v"INPUT_VERSION" by Falcon4ever\n" "Release: "RELDAY"/"RELMONTH"/"RELYEAR"\n" "www.multigesture.net")); - m_OK = new wxButton(this, ID_OK, wxT("OK"), wxPoint(108,343), wxSize(75,25), 0, wxDefaultValidator, wxT("OK")); + m_OK = new wxButton(this, ID_OK, wxT("OK"), wxPoint(116,343), wxSize(75,25), 0, wxDefaultValidator, wxT("OK")); m_version = new wxStaticText(this, ID_STATUSV, wxT("PUBLIC RELEASE"), wxPoint(14,349), wxDefaultSize, 0, wxT("PUBLIC RELEASE"));