mirror of https://github.com/PCSX2/pcsx2.git
pcsx2-gui: Fix dpi scaling for some windows.
About, first time wizard, import settings, assertion dialog.
This commit is contained in:
parent
18fe9431e0
commit
1dc5d07696
|
@ -16,6 +16,7 @@
|
||||||
#include "PrecompiledHeader.h"
|
#include "PrecompiledHeader.h"
|
||||||
#include "App.h"
|
#include "App.h"
|
||||||
#include "AppCommon.h"
|
#include "AppCommon.h"
|
||||||
|
#include "MSWstuff.h"
|
||||||
|
|
||||||
#include "Dialogs/ModalPopups.h"
|
#include "Dialogs/ModalPopups.h"
|
||||||
|
|
||||||
|
@ -34,12 +35,10 @@ using namespace pxSizerFlags;
|
||||||
Dialogs::AboutBoxDialog::AboutBoxDialog(wxWindow* parent)
|
Dialogs::AboutBoxDialog::AboutBoxDialog(wxWindow* parent)
|
||||||
: wxDialogWithHelpers(parent, AddAppName(_("About %s")), pxDialogFlags())
|
: wxDialogWithHelpers(parent, AddAppName(_("About %s")), pxDialogFlags())
|
||||||
, m_bitmap_logo(this, wxID_ANY, wxBitmap(EmbeddedImage<res_Logo>().Get()),
|
, m_bitmap_logo(this, wxID_ANY, wxBitmap(EmbeddedImage<res_Logo>().Get()),
|
||||||
wxDefaultPosition, wxDefaultSize
|
wxDefaultPosition, wxDefaultSize)
|
||||||
)
|
|
||||||
{
|
{
|
||||||
// Main layout
|
// Main layout
|
||||||
|
SetMinWidth(MSW_GetDPIScale() * 460);
|
||||||
SetMinWidth(460);
|
|
||||||
|
|
||||||
*this += m_bitmap_logo | StdCenter();
|
*this += m_bitmap_logo | StdCenter();
|
||||||
|
|
||||||
|
|
|
@ -16,13 +16,14 @@
|
||||||
#include "PrecompiledHeader.h"
|
#include "PrecompiledHeader.h"
|
||||||
#include "App.h"
|
#include "App.h"
|
||||||
#include "ModalPopups.h"
|
#include "ModalPopups.h"
|
||||||
|
#include "MSWstuff.h"
|
||||||
|
|
||||||
using namespace pxSizerFlags;
|
using namespace pxSizerFlags;
|
||||||
|
|
||||||
Dialogs::AssertionDialog::AssertionDialog( const wxString& text, const wxString& stacktrace )
|
Dialogs::AssertionDialog::AssertionDialog( const wxString& text, const wxString& stacktrace )
|
||||||
: wxDialogWithHelpers( NULL, _("Assertion Failure - ") + pxGetAppName(), pxDialogFlags().Resize(!stacktrace.IsEmpty()) )
|
: wxDialogWithHelpers( NULL, _("Assertion Failure - ") + pxGetAppName(), pxDialogFlags().Resize(!stacktrace.IsEmpty()) )
|
||||||
{
|
{
|
||||||
SetMinWidth( 720 );
|
SetMinWidth( MSW_GetDPIScale() * 720 );
|
||||||
|
|
||||||
wxFlexGridSizer* flexgrid = new wxFlexGridSizer( 1 );
|
wxFlexGridSizer* flexgrid = new wxFlexGridSizer( 1 );
|
||||||
flexgrid->AddGrowableCol( 0 );
|
flexgrid->AddGrowableCol( 0 );
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include "PrecompiledHeader.h"
|
#include "PrecompiledHeader.h"
|
||||||
#include "System.h"
|
#include "System.h"
|
||||||
#include "Plugins.h"
|
#include "Plugins.h"
|
||||||
|
#include "MSWstuff.h"
|
||||||
|
|
||||||
#include "ModalPopups.h"
|
#include "ModalPopups.h"
|
||||||
#include "Panels/ConfigurationPanels.h"
|
#include "Panels/ConfigurationPanels.h"
|
||||||
|
@ -67,7 +68,7 @@ namespace Panels
|
||||||
Panels::FirstTimeIntroPanel::FirstTimeIntroPanel( wxWindow* parent )
|
Panels::FirstTimeIntroPanel::FirstTimeIntroPanel( wxWindow* parent )
|
||||||
: wxPanelWithHelpers( parent, wxVERTICAL )
|
: wxPanelWithHelpers( parent, wxVERTICAL )
|
||||||
{
|
{
|
||||||
SetMinWidth( 600 );
|
SetMinWidth( MSW_GetDPIScale() * 600 );
|
||||||
|
|
||||||
FastFormatUnicode faqFile;
|
FastFormatUnicode faqFile;
|
||||||
#ifndef DOC_DIR_COMPILATION
|
#ifndef DOC_DIR_COMPILATION
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
#include "PrecompiledHeader.h"
|
#include "PrecompiledHeader.h"
|
||||||
#include "System.h"
|
#include "System.h"
|
||||||
|
#include "MSWstuff.h"
|
||||||
|
|
||||||
#include "ModalPopups.h"
|
#include "ModalPopups.h"
|
||||||
|
|
||||||
|
@ -23,7 +24,7 @@ using namespace pxSizerFlags;
|
||||||
Dialogs::ImportSettingsDialog::ImportSettingsDialog( wxWindow* parent )
|
Dialogs::ImportSettingsDialog::ImportSettingsDialog( wxWindow* parent )
|
||||||
: wxDialogWithHelpers( parent, _("Import Existing Settings?") )
|
: wxDialogWithHelpers( parent, _("Import Existing Settings?") )
|
||||||
{
|
{
|
||||||
SetMinWidth( 440 );
|
SetMinWidth( MSW_GetDPIScale() * 440 );
|
||||||
|
|
||||||
pxStaticText& heading( Text( pxsFmt(
|
pxStaticText& heading( Text( pxsFmt(
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue