pcsx2 gui: reduce the padding to 2 for low cost display

This commit is contained in:
Gregory Hainaut committed 2016-11-19 11:27:20 +01:00
1 parent 4aa79df402
commit 0e2ec9c2cb
3 files changed
+11 -1

No files matched your search

+2 -1
View File
@@ -40,7 +40,7 @@ class wxSpinCtrl;
namespace pxSizerFlags
{
static const int StdPadding = 4;
static int StdPadding = 4;
extern wxSizerFlags StdSpace();
extern wxSizerFlags StdCenter();
@@ -49,6 +49,7 @@ extern wxSizerFlags TopLevelBox();
extern wxSizerFlags SubGroup();
extern wxSizerFlags StdButton();
extern wxSizerFlags Checkbox();
extern void SetBestPadding();
};
#define wxSF wxSizerFlags()
+8
View File
@@ -269,6 +269,14 @@ wxSizerFlags pxSizerFlags::Checkbox()
return StdExpand();
}
void pxSizerFlags::SetBestPadding()
{
if (wxSystemSettings::GetMetric(wxSYS_SCREEN_X) > 1024 && wxSystemSettings::GetMetric(wxSYS_SCREEN_Y) > 864)
StdPadding = 4;
else
StdPadding = 2;
}
// --------------------------------------------------------------------------------------
// pxTextWrapper / pxTextWrapperBase (implementations)
// --------------------------------------------------------------------------------------
+1
View File
@@ -477,6 +477,7 @@ bool Pcsx2App::OnInit()
// Start GUI and/or Direct Emulation
// -------------------------------------
pxSizerFlags::SetBestPadding();
if( Startup.ForceConsole ) g_Conf->ProgLogBox.Visible = true;
OpenProgramLog();
AllocateCoreStuffs();