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

[Call of Cthulhu: Dark Corners of the Earth] - Windowed Mode brightness issues #297

Open
deanff opened this issue Sep 12, 2024 · 9 comments

Comments

@deanff
Copy link

deanff commented Sep 12, 2024

Enabling windowed mode is a god-send as it prevents the game from crashing when alt-tabbing.
Unfortunately, it sets the brightness to 200%, and the in-game brightness menu ceases to function.

FULLSCREEN: https://i.imgur.com/gzowi2P.jpeg
WINDOWED: https://i.imgur.com/qevv4Rh.png

Tested with the latest stable release of dxwrapper on retail edition (same as Steam, I believe) and GOG version.
Let me know if there's anything I can do to help out - and thank you for your efforts on this project.

@elishacloud
Copy link
Owner

That is probably a Gamma issue. Gamma in Direct3D9 and older does not work in Windowed mode, even fullscreen windowed mode.

@elishacloud
Copy link
Owner

I could use either a shader or Windows gamma. A shader will take longer. Using Windows gamma will affect the whole screen not just the game window.

@deanff
Copy link
Author

deanff commented Sep 12, 2024

It looks like just the game world is affected.
https://i.imgur.com/69LIBPD.png
https://i.imgur.com/D2fLQDl.png

@elishacloud
Copy link
Owner

Ok, try this update. I recommend using the FullscreenWindowMode: dxwrapper.zip

@deanff
Copy link
Author

deanff commented Sep 12, 2024

No luck, unfortunately.

Below is what I tested:
FIles copied as is: alt-tab crash
+FullscreenWindowMode: alt-tab crash
+EnableWindowMode: alt-tab crash
-Dd7to9: alt-tab crash
renamed ddraw.dll to d3d9.dll: alt-tab crash
+EnableD3d9Wrapper: same gamma as before. brightness menu has no effect.

Let me know if I've made a mistake somewhere here.

@elishacloud
Copy link
Owner

It is weird that it crashing in Alt+Tab when using windowed mode. That should not be because in windowed mode the device is never lost. Maybe the game uses a combination of DirectDraw and Direct3D9? In that case you need to disable dd7to9.

Here is an updated one where I moved the gamma feature to the Direct3D9 wrapper. Try this one: dxwrapper.zip

@deanff
Copy link
Author

deanff commented Sep 13, 2024

Hi Elisha,
Gamma is the same as before, but now the brightness menu works. :)
It crashed when alt-tabbing, so I turned on EnableWindowMode.

@elishacloud
Copy link
Owner

Gamma is the same as before, but now the brightness menu works. :)

Which gamma are you referring to that does not work?

It crashed when alt-tabbing, so I turned on EnableWindowMode.

Is this a bug in the game? Does it crash without dxwrapper when you do alt+tab? My Direct3D9 wrapper just returns the calls directly from Direct3D9, so it should not have any issues here.

@deanff
Copy link
Author

deanff commented Sep 23, 2024

Hi Elisha,
Yeah, the alt-tab crash is a known bug with this game. Your wrapper's Windowed Mode resolves it.
Only problem is gamma for the game world is twice as bright as it should be.

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