Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scale only apply to the initial window #54

Open
mkende opened this issue Apr 17, 2022 · 6 comments
Open

scale only apply to the initial window #54

mkende opened this issue Apr 17, 2022 · 6 comments

Comments

@mkende
Copy link

mkende commented Apr 17, 2022

I’m trying BoxedWine with a game which displays with a pretty small resolution, so I start it with -scale 200 -scale_quality 2. The splash screen of the game is indeed twice its normal size, but after that the BoxedWine window is reside a couple of times during the initialization of the game and, when the game finally starts, it is not scaled.

I have tried using the -showWindowImmediately argument, but it is not recognised by BoxedWine version 20.1.2 that is currently available for download.

@danoon2
Copy link
Owner

danoon2 commented Apr 18, 2022

I should document that better. scale only work with GDI rendering. GDI rendering is used for everything other than DirectX/OpenGL. If your game is DirectDraw, you can tell Wine to output DirectDraw using GDI instead of OpenGL. In the Boxedwine UI this is down with the "DD GDI Renderer" checkbox for the game in the "Containers" tab. This can not be done from the command line, but you could launch regedit from the command line and manually create the correct registry key. If your game is Direct3D or OpenGL, scaling won't work.

Folder

HKEY_CURRENT_USER\Software\Wine\Direct3D

add string key

DirectDrawRenderer

and set the value to

gdi

@mkende
Copy link
Author

mkende commented Apr 22, 2022

Thanks for the explanation, I had tried to set the registry key but had set the renderer one and not DirectDrawRenderer .I had not noticed that it was not supported by older Wine.

Any chance that scaling can be made to work with the OpenGL renderer (or maybe the future Vulkan renderer)? In addition to the limitation that you mention, I have noticed that colors work badly with gdi (I have several games where the colors are inverted when using the gdi renderer and -bpp 8 which is sometime required to start them).

@danoon2
Copy link
Owner

danoon2 commented Apr 28, 2022

@mkende Which version of Wine are you using? I noticed starting around Wine 5.0 8-bit games started to work a lot better.

I would like to scale OpenGL, but I never figured out how to do it.

@mkende
Copy link
Author

mkende commented Apr 28, 2022

This inverted coIor issue happened with Wine 5.0.

@danoon2
Copy link
Owner

danoon2 commented May 4, 2022

What game is it? Do you know if this issue happen with Wine on Linux?

@mkende
Copy link
Author

mkende commented May 5, 2022

I’ve seen that with a couple of games, one of them was Hover!. I haven’t been able to reproduce the problem on Linux, but also there is no easy way there to set the screen to 256 colors which triggered this on Windows.

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

No branches or pull requests

2 participants