Skip to content

createCursor is broken, should pack Bools in Word8, sample working implementation provided #232

Closed
@Mikolaj

Description

@Mikolaj

https://hackage.haskell.org/package/sdl2-2.5.3.0/docs/SDL-Input-Mouse.html#v:createCursor

is broken, shows every one of four vertical lines. It should probably use

https://hackage.haskell.org/package/base-4.12.0.0/docs/Foreign-C-Types.html#t:CBool

instead of Bool, as per

https://stackoverflow.com/questions/41777675/large-size-of-bool-in-foreign-storable/46784931

However, due to old Ubuntu and so old C sdl2, the latest I can use is sdl2-2.4.1.0, so perhaps this was fixed (no related issue seems to exist, but I didn't search commits). Should I unpack old sdl2, fix it and see if that helps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions