[idd] helper: allow no GPU warning to be configured

This commit is contained in:
Quantum
2026-06-03 01:20:15 -04:00
parent 29d02ddbb9
commit e74f58afb4
2 changed files with 28 additions and 4 deletions

View File

@@ -32,6 +32,7 @@ class CListBox;
class CGroupBox;
class CEditWidget;
class CButton;
class CCheckbox;
class CConfigWindow : public CWindow
{
@@ -57,12 +58,16 @@ class CConfigWindow : public CWindow
std::unique_ptr<CEditWidget> m_defRefresh;
std::unique_ptr<CStaticWidget> m_defRefreshHz;
std::unique_ptr<CGroupBox> m_prefGroup;
std::unique_ptr<CCheckbox> m_prefNoGPU;
std::function<void()> m_onDestroy;
double m_scale;
Microsoft::WRL::Wrappers::HandleT<FontTraits> m_font;
CRegistrySettings m_settings;
std::optional<std::vector<DisplayMode>> m_modes;
std::optional<DWORD> m_defaultRefresh;
std::optional<bool> m_noGPU;
void getMinimumSize(LONG &width, LONG &height);
void updateFont();