Skip to content

Scale pointer coordinates even when logical presentation is disabled - #607

Merged
Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:mc_adj
Jun 18, 2026
Merged

Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:mc_adj

Conversation

@Kontrabant

Copy link
Copy Markdown
Contributor

Logical presentation will be reported as disabled after setting a render target, however, pointer coordinates may still need to be scaled, as the previous view state is still preserved internally (the 'main_view' in the SDL3 render backend).

Fixes #606

Logical presentation will be reported as disabled after setting a render target, however, the coordinates may still need to be scaled, as the previous view state is still preserved internally (the 'main_view' in the SDL3 render backend).
@Kontrabant Kontrabant added this to the 2.32.72 milestone Jun 18, 2026
@Kontrabant
Kontrabant merged commit cf62e9a into libsdl-org:main Jun 18, 2026
8 checks passed
@sezero
sezero requested review from icculus and slouken June 18, 2026 14:07
@Kontrabant
Kontrabant deleted the mc_adj branch June 18, 2026 14:08
@bjorn

bjorn commented Sep 16, 2026

Copy link
Copy Markdown

Unfortunately this caused a regression in Mana client, making it entirely unusable when scaling is enabled. :-( See #624 for more information.

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.

Caesar 3 (Augustus) works with SDL2 but doesn't with SDL2-compat if the screen scaling option is enabled

2 participants