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

cpct_drawSpriteBlended inconsistent parameter order in Development Branch 1.5 #171

Open
davemoore22 opened this issue Nov 18, 2023 · 0 comments

Comments

@davemoore22
Copy link

From the official documentation, its Height then Width in cpct_drawSpriteBlended but otherwise in all other calls that I can see its Width then Height in the parameters. This is somewhat annoying and obviously inconsistent.

void cpct_drawSpriteBlended (void* memory, u8 height, u8 width, void* sprite) __z88dk_callee;

vs

void cpct_drawSpriteMasked (void* sprite, void* memory, u8 width, u8 height) __z88dk_callee;
void cpct_drawSprite (void* sprite, void* memory, u8 width, u8 height) __z88dk_callee;

Also, the other two parameters are swapped about too.

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