是FillRect()函数没有移值好
按下面这样移值就可以了
static void _FillRect(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1) {
int x;
if (GUI_pContext->DrawMode LCD_DRAWMODE_XOR)
{
for (; y0 <= y1; y0++)
{
for (x = x0; x <= x1; x++)
{
_XorPixel(pDevice, x, y0);
}
}
}
else
{
LCD_Fill(x0,y0,x1,y1,LCD_COLORINDEX);
}
}
是FillRect()函数没有移值好
按下面这样移值就可以了
static void _FillRect(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1) {
int x;
if (GUI_pContext->DrawMode LCD_DRAWMODE_XOR)
{
for (; y0 <= y1; y0++)
{
for (x = x0; x <= x1; x++)
{
_XorPixel(pDevice, x, y0);
}
}
}
else
{
LCD_Fill(x0,y0,x1,y1,LCD_COLORINDEX);
}
}
举报