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

Inconsistent API #41

Open
mrbell321 opened this issue Sep 9, 2020 · 0 comments
Open

Inconsistent API #41

mrbell321 opened this issue Sep 9, 2020 · 0 comments

Comments

@mrbell321
Copy link

mrbell321 commented Sep 9, 2020

UGUI/ugui.h

Lines 898 to 899 in ce0bccb

void UG_PutString( UG_S16 x, UG_S16 y, char* str );
void UG_PutChar( char chr, UG_S16 x, UG_S16 y, UG_COLOR fc, UG_COLOR bc );

UG_PutString, as with most other functions, has the location first, then the object.
UG_PutChar, on the other hand, has the object first, then the location.
Additionally UG_PutChar sets the foreground&background colors, but UG_PutString does not have any color information. Other graphics primitives have only the foreground color.
This makes for an inconsistent UI.

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