mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 08:45:24 +03:00
Fixes #1542
This commit is contained in:
parent
a0cc428228
commit
7f47a4fe10
4 changed files with 11 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
BIN
radio/src/tests/vline_lt0_128x64.png
Normal file
BIN
radio/src/tests/vline_lt0_128x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 272 B |
BIN
radio/src/tests/vline_lt0_212x64.png
Normal file
BIN
radio/src/tests/vline_lt0_212x64.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 294 B |
Loading…
Add table
Add a link
Reference in a new issue