e-Paper icon indicating copy to clipboard operation
e-Paper copied to clipboard

foreground / backgound args revesed

Open graemev opened this issue 1 year ago • 0 comments

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);

graemev avatar Jun 23 '24 10:06 graemev