Skip to content

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

Merged
eXpl0it3r merged 1 commit into
SFML:2.6.xfrom
kimci86:bugfix/unix_load_cursor
Apr 13, 2022
Merged

Fix incorrect cast in Cursor::loadFromPixels Unix implementation#2073
eXpl0it3r merged 1 commit into
SFML:2.6.xfrom
kimci86:bugfix/unix_load_cursor

Conversation

@kimci86

@kimci86 kimci86 commented Apr 12, 2022

Copy link
Copy Markdown
Contributor

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.

@ChrisThrasher ChrisThrasher left a comment

Copy link
Copy Markdown
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants