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

Problem with big hex numbers in windows #149

Open
Joe7M opened this issue Jul 2, 2022 · 0 comments
Open

Problem with big hex numbers in windows #149

Joe7M opened this issue Jul 2, 2022 · 0 comments

Comments

@Joe7M
Copy link
Contributor

Joe7M commented Jul 2, 2022

I was creating images from arrays with transparency:
color = (transparency lshift 24) - rgb(r,g,b)

Instead of "transparency lshift 24" I wanted to use hex numbers. I realized, that in Linux everything is fine, but in Windows the colors are messed up. Reason is, that big hex numbers in windows don't work.

Linux:
print 255 lshift 24 'Output: 4278190080
print 0xFF000000 'Output: 4278190080

Windows:
print 255 lshift 24 'Output: 4278190080
print 0xFF000000 'Output: -16777216

tested with SDL version sbasicg 12.24 64bit

Joe7M added a commit to Joe7M/SmallBASIC that referenced this issue Apr 2, 2024
chrisws added a commit that referenced this issue Apr 14, 2024
Fix bug #149: Problem with big hex numbers in windows
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

No branches or pull requests

1 participant