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

DRAFT: qemu-system-native: fix mouse co-ordinates scaling issue #181

Open
wants to merge 1 commit into
base: scarthgap
Choose a base branch
from

Conversation

hashraf91
Copy link
Contributor

This is in continuation of commit 59cc33d.

The previous commit solved the issue with SDL,GL but since scaling issue was only related to opengl, the scaling shouldn't have been applied otherwise. So, conditionally scale the mouse co-ordinates only for SDL,GL.

Moreover, moved the logic to common place and now the scaling isn't actually required, if we just choose the correct surface dimension based on opengl context.

JIRA-ID: SB-23711

This is in continuation of commit 59cc33d.

The previous commit solved the issue with SDL,GL but since scaling
issue was only related to opengl, the scaling shouldn't have been
applied otherwise. So, conditionally scale the mouse co-ordinates
only for SDL,GL.

Moreover, moved the logic to common place and now the scaling isn't
actually required, if we just choose the correct surface dimension
based on opengl context.

JIRA-ID: SB-23711

Signed-off-by: Haseeb Ashraf <[email protected]>
@hashraf91
Copy link
Contributor Author

@kergoth I checked with qemu-9.0.2 in oe-core:master-next and this issue is still there. Although, I have yet to check in QEMU master.

@Noor-Ahsan we'll have to submit this updated patch to qemu-s2s repository as well.

@hashraf91 hashraf91 changed the title qemu-system-native: fix mouse co-ordinates scaling issue DRAFT: qemu-system-native: fix mouse co-ordinates scaling issue Oct 4, 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