1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00
This commit is contained in:
bsongis 2014-07-20 18:50:55 +02:00
parent a0cc428228
commit 7f47a4fe10
4 changed files with 11 additions and 1 deletions

View file

@ -92,7 +92,7 @@ void lcd_vlineStip(xcoord_t x, int8_t y, int8_t h, uint8_t pat, LcdFlags att)
if (x >= LCD_W) return;
if (y >= LCD_H) return;
if (h<0) { y+=h; h=-h; }
if (y<0) { h+=y; y=0; }
if (y<0) { h+=y; y=0; if (h<=0) return; }
if (y+h > LCD_H) { h = LCD_H - y; }
if (pat==DOTTED && !(y%2)) {

View file

@ -192,6 +192,16 @@ TEST(Lcd, vline)
EXPECT_TRUE(checkScreenshot("vline"));
}
#if defined(CPUARM)
TEST(Lcd, vline_x_lt0)
{
lcd_clear();
lcd_vline(50, -10, 12);
lcd_vline(100, -10, 1);
EXPECT_TRUE(checkScreenshot("vline_lt0"));
}
#endif
#if defined(CPUARM)
TEST(Lcd, Smlsize)
{

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B