cpctelera icon indicating copy to clipboard operation
cpctelera copied to clipboard

cpct_drawSpriteBlended inconsistent parameter order in Development Branch 1.5

Open davemoore22 opened this issue 1 year ago • 0 comments

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.

davemoore22 avatar Nov 18 '23 18:11 davemoore22