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

[Win32] Fix window size when aspect ratio is < 0 #15941

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

bslenul
Copy link
Contributor

@bslenul bslenul commented Nov 22, 2023

Description

Issue seen here: https://www.reddit.com/r/RetroArch/comments/180s61q/bsneshd_core_weird_locked_windowed_resolution/

Window size can be completely broken on Windows when core aspect_ratio is set to a negative value, this is the case for example in bsnes-hd depending on a core option: https://github.com/DerKoun/bsnes-hd/blob/f46b6d6368ea93943a30b5d4e79e8ed51c2da5e8/bsnes/target-libretro/libretro.cpp#L903-L904

No idea if this is common, but according to the comment in libretro.h it seems legal:

float aspect_ratio; /* Nominal aspect ratio of game. If
* aspect_ratio is <= 0.0, an aspect ratio
* of base_width / base_height is assumed.
* A frontend could override this setting,
* if desired. */

Related Pull Requests

4699d91

Reviewers

@sonninnos

@LibretroAdmin LibretroAdmin merged commit 3c25f19 into libretro:master Nov 22, 2023
22 checks passed
@bslenul bslenul deleted the win32-negative-ar-fix branch November 22, 2023 18:34
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants