Skip to content

Windows improvements - dynamic resizing and VS2022 support #22

Description

@omenoidlab

Hi ptitSeb!

I'm Antti from Finland, and I've been a huge Stunt Car Racer fan since 1990 - your remake is fantastic! I've been working on some Windows-specific improvements on the win32-improvements branch and wanted to get your thoughts.

What I've added:

Dynamic window resizing with aspect ratio locking (16:10/4:3)
Automatic scaling for fonts, cockpit overlay, and UI elements
Fixed the Windows build to compile cleanly with Visual Studio 2022
Some general code quality improvements (replaced C-style casts, extracted magic numbers to constants)
Full documentation in README.md and WINDOWS_FEATURES.md
Linux compatibility:
I've been careful to keep everything cross-platform safe. All the Windows-specific stuff is behind #ifdef linux guards or just returns 1.0x scaling on Linux, so your SDL/OpenGL build continues working exactly as before with the fixed resolution. The Linux build shouldn't be affected at all.

I know you mainly focus on the Linux/SDL side (which is awesome!), so I wanted to ask: would you be interested in merging these Windows enhancements into master, or would you prefer I maintain them as a separate fork? I'm happy either way - just want to make sure I'm not stepping on any toes or cluttering up the main branch with Windows-only features.

Let me know what you think!

Cheers,
Antti (omenoid)

P.s my branch can be seen here https://github.com/akaunist-coder/stuntcarremake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions