FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.12k stars 143 forks source link

Games not scaling up to window size. #306

Closed brad86m closed 2 months ago

brad86m commented 2 months ago

I have exhausted all options within the config ini, and I just can't find a way to get games to scale up to the window/fullscreen canvas. Am I missing something, or is what I'm looking for not implemented ?

RoadRash_2024_04_25_16_58_29_691

FunkyFr3sh commented 2 months ago

Not all games support upscaling. This game seems to have a preset that disables upscaling with the fixchilds setting

; ROAD RASH
[RoadRash]
adjmouse=true
fixchilds=1

I don't remember why it was added, you could try to open ddraw.ini in notepad, search for road rash and remove the preset to see what happens

brad86m commented 2 months ago

Wow. I completely missed the entry when looking through the ini. Now I feel stupid. Anyway, it is now scaled to screen size, and that was what I wanted. Thank you :)

FunkyFr3sh commented 2 months ago

This game is weird, it does create a transparent window and that's why cnc-ddraw disabled the upscaling. I guess it's fine to ignore that invisible window and just upscale everything.

But there are some other problems, the mouse coords are off in the menu when upscaling is enabled and the cutscenes are not being upscaled... I'll have a look into it, maybe it can be improved. It's playable though, you can navigate the mensu with the keyboard for now

FunkyFr3sh commented 2 months ago

I could improve it a bit, does work now without manual ddraw.ini tweaks and cutscenes are being upscaled now as well:

https://github.com/FunkyFr3sh/cnc-ddraw/actions/runs/8840677752/artifacts/1449146727