Skip to content

Problem with big hex numbers in windows #149

@Joe7M

Description

@Joe7M

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions