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

foreground / backgound args revesed #346

Open
graemev opened this issue Jun 23, 2024 · 0 comments
Open

foreground / backgound args revesed #346

graemev opened this issue Jun 23, 2024 · 0 comments

Comments

@graemev
Copy link

graemev commented Jun 23, 2024

In GUI_Paint.h all methods have the arg order ...foreground, background ...note Paint_DrawChar() and Paint_DrawString_EN()

void Paint_DrawChar(UWORD Xstart, UWORD Ystart, const char Acsii_Char, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background);
void Paint_DrawString_EN(UWORD Xstart, UWORD Ystart, const char * pString, sFONT* Font, UWORD Color_Foreground, UWORD Color_Background);
void Paint_DrawString_CN(UWORD Xstart, UWORD Ystart, const char * pString, cFONT* font, UWORD Color_Foreground, UWORD Color_Background);

However in GUI_Paint.c ( line 590 ) the call is made:

Paint_DrawChar(Xpoint, Ypoint, * pString, Font, Color_Background, Color_Foreground);

`
This should read:

Paint_DrawChar(Xpoint, Ypoint, * pString, Fon, Color_Foregroundt, Color_Background);

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