Skip to content

Fix restoring native resolution from DSR modes - #208

Open
bbj233 wants to merge 1 commit into
Codectory:mainfrom
bbj233:fix/native-resolution-from-dsr
Open

Fix restoring native resolution from DSR modes#208
bbj233 wants to merge 1 commit into
Codectory:mainfrom
bbj233:fix/native-resolution-from-dsr

Conversation

@bbj233

@bbj233 bbj233 commented Sep 10, 2026

Copy link
Copy Markdown

Note

AI disclosure: This fix was diagnosed and implemented with assistance from OpenAI Codex (GPT-5.6 Sol). The user supplied the problem report and manually validated the fix in the affected game.

Summary

  • clear DM_DISPLAYFIXEDOUTPUT when changing resolution
  • explicitly mark width and height as valid DEVMODE fields
  • surface failed ChangeDisplaySettingsEx calls instead of silently continuing

Problem

When switching from an NVIDIA DSR/DLDSR resolution back to the native resolution, EnumDisplaySettings(ENUM_CURRENT_SETTINGS) may return DM_DISPLAYFIXEDOUTPUT with dmDisplayFixedOutput = 1.

AutoActions copies that current DEVMODE and changes only dmPelsWidth and dmPelsHeight. Carrying the fixed-output scaling setting into the native-resolution request can cause ChangeDisplaySettingsEx to return DISP_CHANGE_BADMODE.

The return value was previously ignored, so the log reported that the resolution was being set even though Windows rejected it.

Validation

Manually validated by the user on Windows 11 with an NVIDIA RTX 5070 Ti and driver 616.92:

  • 3840×2160 → 5120×2880 DLDSR: successful
  • 5120×2880 DLDSR → 3840×2160: successful

Before the fix, the second transition returned DISP_CHANGE_BADMODE (-2).

@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for codectory ready!

Name Link
🔨 Latest commit 62d00fc
🔍 Latest deploy log https://app.netlify.com/projects/codectory/deploys/6aa33f99f40d0b0008f473b1
😎 Deploy Preview https://deploy-preview-208--codectory.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant