doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.56k stars 802 forks source link

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

Closed thekovic closed 1 month ago

thekovic commented 1 month ago

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.

doitsujin commented 1 month ago

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.

mirh commented 1 month ago

Dxwrapper is what you are looking after.

doitsujin commented 1 month ago

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.