mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 18:50:32 +01:00
pcsx2 gui: reduce the padding to 2 for low cost display
This commit is contained in:
1 parent
4aa79df402
commit
0e2ec9c2cb
3 files changed
+11
-1
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
// --------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user