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

Fix incorrect cast in Cursor::loadFromPixels Unix implementation #2073

Merged
merged 1 commit into from Apr 13, 2022

Conversation

kimci86
Copy link
Contributor

@kimci86 kimci86 commented Apr 12, 2022

Description

Fixes #2066

A cast was added in e0f2356 as part of PR #1846 to avoid a warning about sign conversion, but to Uint8 which is too small for a pixel in the target ARGB format.

Tasks

  • Tested on Linux
  • Tested on Windows
  • Tested on macOS
  • Tested on iOS
  • Tested on Android

How to test this PR?

Running the example program provided in #2066 on a Unix platform.

@eXpl0it3r eXpl0it3r added this to Discussion in SFML 2.6.0 via automation Apr 12, 2022
@eXpl0it3r eXpl0it3r added this to the 2.6 milestone Apr 12, 2022
@eXpl0it3r eXpl0it3r moved this from Discussion to Review & Testing in SFML 2.6.0 Apr 12, 2022
Copy link
Member

@ChrisThrasher ChrisThrasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the subtle formatting mistake too. Now it's easier to see what's going on.

SFML 2.6.0 automation moved this from Review & Testing to Ready Apr 13, 2022
@eXpl0it3r eXpl0it3r merged commit 28279c0 into SFML:2.6.x Apr 13, 2022
SFML 2.6.0 automation moved this from Ready to Done Apr 13, 2022
@kimci86 kimci86 deleted the bugfix/unix_load_cursor branch April 13, 2022 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.6.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants