Skip to content
Permalink
Browse files

pcsx2-gui: Fix dpi scaling for some windows.

About, first time wizard, import settings, assertion dialog.
  • Loading branch information
lightningterror committed Nov 23, 2019
1 parent 18fe943 commit 1dc5d076968ecc13ccb0f5a953a4af799652da05
@@ -16,6 +16,7 @@
#include "PrecompiledHeader.h"
#include "App.h"
#include "AppCommon.h"
#include "MSWstuff.h"

#include "Dialogs/ModalPopups.h"

@@ -34,12 +35,10 @@ using namespace pxSizerFlags;
Dialogs::AboutBoxDialog::AboutBoxDialog(wxWindow* parent)
: wxDialogWithHelpers(parent, AddAppName(_("About %s")), pxDialogFlags())
, m_bitmap_logo(this, wxID_ANY, wxBitmap(EmbeddedImage<res_Logo>().Get()),
wxDefaultPosition, wxDefaultSize
)
wxDefaultPosition, wxDefaultSize)
{
// Main layout

SetMinWidth(460);
SetMinWidth(MSW_GetDPIScale() * 460);

*this += m_bitmap_logo | StdCenter();

@@ -16,13 +16,14 @@
#include "PrecompiledHeader.h"
#include "App.h"
#include "ModalPopups.h"
#include "MSWstuff.h"

using namespace pxSizerFlags;

Dialogs::AssertionDialog::AssertionDialog( const wxString& text, const wxString& stacktrace )
: wxDialogWithHelpers( NULL, _("Assertion Failure - ") + pxGetAppName(), pxDialogFlags().Resize(!stacktrace.IsEmpty()) )
{
SetMinWidth( 720 );
SetMinWidth( MSW_GetDPIScale() * 720 );

wxFlexGridSizer* flexgrid = new wxFlexGridSizer( 1 );
flexgrid->AddGrowableCol( 0 );
@@ -16,6 +16,7 @@
#include "PrecompiledHeader.h"
#include "System.h"
#include "Plugins.h"
#include "MSWstuff.h"

#include "ModalPopups.h"
#include "Panels/ConfigurationPanels.h"
@@ -67,7 +68,7 @@ namespace Panels
Panels::FirstTimeIntroPanel::FirstTimeIntroPanel( wxWindow* parent )
: wxPanelWithHelpers( parent, wxVERTICAL )
{
SetMinWidth( 600 );
SetMinWidth( MSW_GetDPIScale() * 600 );

FastFormatUnicode faqFile;
#ifndef DOC_DIR_COMPILATION
@@ -15,6 +15,7 @@

#include "PrecompiledHeader.h"
#include "System.h"
#include "MSWstuff.h"

#include "ModalPopups.h"

@@ -23,7 +24,7 @@ using namespace pxSizerFlags;
Dialogs::ImportSettingsDialog::ImportSettingsDialog( wxWindow* parent )
: wxDialogWithHelpers( parent, _("Import Existing Settings?") )
{
SetMinWidth( 440 );
SetMinWidth( MSW_GetDPIScale() * 440 );

pxStaticText& heading( Text( pxsFmt(

0 comments on commit 1dc5d07

Please sign in to comment.
You can’t perform that action at this time.