Commit 6c65f779 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Implement d3d9.enableDialogMode

Enable this option to disable exclusive fullscreen by default.

Closes #475
parent 4d46d2e6
Pipeline #945 passed with stage
in 4 minutes and 4 seconds
......@@ -276,4 +276,16 @@
# Supported values:
# - True/False
# d3d9.floatEmulation =
\ No newline at end of file
# d3d9.floatEmulation =
# Enable dialog box mode
#
# Changes the default state of dialog box mode.
# *Disables* exclusive fullscreen when enabled.
#
# Supported values:
# - True, False: Always enable / disable
# d3d9.enableDialogMode = False
......@@ -60,6 +60,7 @@ namespace dxvk {
this->invariantPosition = config.getOption<bool> ("d3d9.invariantPosition", false);
this->memoryTrackTest = config.getOption<bool> ("d3d9.memoryTrackTest", false);
this->supportVCache = config.getOption<bool> ("d3d9.supportVCache", vendorId == 0x10de);
this->enableDialogMode = config.getOption<bool> ("d3d9.enableDialogMode", false);
this->forceAspectRatio = config.getOption<std::string>("d3d9.forceAspectRatio", "");
......
......@@ -109,6 +109,9 @@ namespace dxvk {
/// Forced aspect ratio, disable other modes
std::string forceAspectRatio;
/// Enable dialog mode (ie. no exclusive fullscreen)
bool enableDialogMode;
};
}
\ No newline at end of file
......@@ -30,7 +30,8 @@ namespace dxvk {
, m_device (pDevice->GetDXVKDevice())
, m_context (m_device->createContext())
, m_frameLatencyCap (pDevice->GetOptions()->maxFrameLatency)
, m_frameLatencySignal(new sync::Fence(m_frameId)) {
, m_frameLatencySignal(new sync::Fence(m_frameId))
, m_dialog (pDevice->GetOptions()->enableDialogMode) {
UpdateMonitorInfo();
this->NormalizePresentParameters(pPresentParams);
......
......@@ -142,7 +142,7 @@ namespace dxvk {
bool m_dirty = true;
bool m_vsync = true;
bool m_dialog = false;
bool m_dialog;
bool m_dialogChanged = false;
HWND m_window = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment