mirror of https://github.com/PCSX2/pcsx2.git
Debugger: Make the register list DPI aware
This commit is contained in:
parent
4442b798c9
commit
74f3bb2aa9
|
@ -74,8 +74,8 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu)
|
||||||
SetDoubleBuffered(true);
|
SetDoubleBuffered(true);
|
||||||
|
|
||||||
const wxSize optSize = getOptimalSize();
|
const wxSize optSize = getOptimalSize();
|
||||||
SetVirtualSize(optSize);
|
SetVirtualSize(optSize.x,optSize.y);
|
||||||
SetScrollbars(1, rowHeight, optSize.x, optSize.y / rowHeight, 0, 0);
|
SetScrollbars(1, rowHeight, optSize.x, optSize.y * MSW_GetDPIScale() / rowHeight, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
CtrlRegisterList::~CtrlRegisterList()
|
CtrlRegisterList::~CtrlRegisterList()
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
|
||||||
|
#include "gui/MSWstuff.h" // Required for MSW_GetDPIScale()
|
||||||
#include "DebugTools/DebugInterface.h"
|
#include "DebugTools/DebugInterface.h"
|
||||||
#include "DebugTools/DisassemblyManager.h"
|
#include "DebugTools/DisassemblyManager.h"
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ public:
|
||||||
if (GetWindowStyle() & wxVSCROLL)
|
if (GetWindowStyle() & wxVSCROLL)
|
||||||
optimalSize.x += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
optimalSize.x += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
|
||||||
|
|
||||||
return wxSize(optimalSize.x, 0);
|
return wxSize(optimalSize.x * MSW_GetDPIScale(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxSize DoGetBestClientSize() const
|
virtual wxSize DoGetBestClientSize() const
|
||||||
|
|
Loading…
Reference in New Issue