protonscr

[d3d8] Question: Option to force windowed (non-fullscreen) mode?

dxvkclosed question
doitsujin/dxvk#4133 · opened 2024-07-10 by thekovic · updated 2024-07-21 · 3 comments · github
Tthekovic 2024-07-10 github

A motivation for using DirectX translation layers I often have is to allow me to force a game into bordered windowed mode (non-fullscreen) when the game doesn't offer this option by itself in its own options menu. This is a relatively common situation in pre-d3d9 games especially.

Now that DXVK has support for d3d8 titles too, it becomes a tool I might want to use for this purpose (alongside all its other benefits). However, it seems DXVK doesn't offer this feature currently? I looked for it as a configuration option in the configuration file documentation but couldn't find it. If it isn't present at the moment, is this something that would be feasible to implement and would you consider it?

Thank you for any response and for all the hard work you do on DXVK.

Ddoitsujin maintainer 2024-07-10 github

Setting d3d9.enableDialogMode = True may help, despite the name it should also apply to D3D8. That said, the best we can do on Windows is pass a flag to the driver to please not go into exclusive fullscreen, it may or may not get ignored.

Mmirh 2024-07-11 github

Dxwrapper is what you are looking after.

Ddoitsujin maintainer 2024-07-11 github

ok i misread, I though this was issue number 9000 about exclusive fullscreen.

Forcing a game into windowed mode is out of scope for this project, it's not as "simple" as just making sure the game remains in windowed mode (even that is very difficult to get right w.r.t. window messages and stuff), but we'd also have to remap all mouse input. At least on Wine you can use the virtual desktop feature though to accomplish more or less the same thing.

Nothing extracted yet.