Skip to content

Conversation

@jayrm
Copy link
Member

@jayrm jayrm commented Sep 24, 2018

  • when mapping 32 & 64 bit functions for PALETTE [GET] USING, check the data type pointed to choose one of LONG PTR, LONGINT PTR, INTEGER PTR
  • tests/gfx/palette.bas added to test PALETTE GET [USING]
  • add tests for BYREF pointer variables for palettes and image buffers

sf.net bug report #883 PALETTE [GET] USING failes using [u]long[int] types depending on platform
fb.net forum discussion FB palette array datatypes

- when mapping 32 & 64 bit functions for PALETTE [GET] USING, check the data type pointed to choose one of LONG PTR, LONGINT PTR, INTEGER PTR
- tests/gfx/palette.bas added to test PALETTE GET [USING]
- add tests for BYREF pointer variables for palettes and image buffers
Copy link
Member

@dkl dkl left a comment

Choose a reason for hiding this comment

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

Ok, nice - looks like a big part of the problem was the missing typeDeref() for the size check.

@jayrm jayrm merged commit 75288fa into freebasic:master Sep 25, 2018
@jayrm jayrm deleted the palette branch September 25, 2018 21:26
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

Successfully merging this pull request may close these issues.

2 participants