We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unit SDL.pas;
SDL_BITSPERPIXEL() SDL_PIXELLAYOUT() SDL_PIXELORDER() SDL_PIXELTYPE() SDL_PIXELFLAG()
Macro conversions are incorrect and should not return a bool but an Integer or Cardinal.
Further the Result should be AND'd with the mask not equated.
e.g of correct
Function SDL_BITSPERPIXEL(X: Cardinal): Cardinal; Begin Result := (X Shr 8) And $FF; End;
The text was updated successfully, but these errors were encountered:
functions repr. C macros corrected (see issue ev1313#28)
37b6494
- functions return Cardinal instead of Bool values - bitwise AND'ing introduced
I agree. I made a minor patch addressing this. I wonder if you use these functions?
Sorry, something went wrong.
Merge pull request #31 from Free-Pascal-meets-SDL-Website/master
0be738b
functions repr. C macros corrected (see issue #28)
No branches or pull requests
Unit SDL.pas;
SDL_BITSPERPIXEL()
SDL_PIXELLAYOUT()
SDL_PIXELORDER()
SDL_PIXELTYPE()
SDL_PIXELFLAG()
Macro conversions are incorrect and should not return a bool but an Integer or Cardinal.
Further the Result should be AND'd with the mask not equated.
e.g of correct
Function SDL_BITSPERPIXEL(X: Cardinal): Cardinal;
Begin
Result := (X Shr 8) And $FF;
End;
The text was updated successfully, but these errors were encountered: