fix: Dx and Dy type

This commit is contained in:
liuyihui 2023-04-27 13:58:09 +08:00
parent 74aa441111
commit c7272c211a

View File

@ -253,7 +253,8 @@ void LCD_DrawPoint(uint16_t x, uint16_t y, uint16_t color) {
} }
void LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) { void LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2) {
uint16_t x, y, d, dx, dy, xe, ye, Dx, Dy; int16_t Dx, Dy;
uint16_t x, y, d, dx, dy, xe, ye;
xe = ye = 0; xe = ye = 0;
x = x1, y = y1; x = x1, y = y1;