Gtests on SmlsizeDecimalPoint
This commit is contained in:
@@ -441,9 +441,9 @@ void lcdDrawNumber(coord_t x, coord_t y, lcdint_t val, LcdFlags flags, uint8_t l
|
|||||||
}
|
}
|
||||||
else if (smlsize) {
|
else if (smlsize) {
|
||||||
x -= 2;
|
x -= 2;
|
||||||
lcdDrawPoint(x+1, y+5);
|
lcdDrawPoint(x, y+5);
|
||||||
if ((flags&INVERS) && ((~flags & BLINK) || BLINK_ON_PHASE)) {
|
if ((flags&INVERS) && ((~flags & BLINK) || BLINK_ON_PHASE)) {
|
||||||
lcdDrawSolidVerticalLine(x+1, y, 7);
|
lcdDrawSolidVerticalLine(x, y-1, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (tinsize) {
|
else if (tinsize) {
|
||||||
|
|||||||
@@ -407,7 +407,7 @@ void lcdDrawNumber(coord_t x, coord_t y, int32_t val, LcdFlags flags, uint8_t le
|
|||||||
x -= 2;
|
x -= 2;
|
||||||
lcdDrawPoint(x, y+5);
|
lcdDrawPoint(x, y+5);
|
||||||
if ((flags&INVERS) && ((~flags & BLINK) || BLINK_ON_PHASE)) {
|
if ((flags&INVERS) && ((~flags & BLINK) || BLINK_ON_PHASE)) {
|
||||||
lcdDrawSolidVerticalLine(x-1, y, 7);
|
lcdDrawSolidVerticalLine(x, y-1, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (tinsize) {
|
else if (tinsize) {
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 447 B |
Binary file not shown.
|
After Width: | Height: | Size: 469 B |
@@ -194,6 +194,16 @@ TEST(Lcd, vline_x_lt0)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
|
TEST(Lcd, SmlsizeDecimalPoint)
|
||||||
|
{
|
||||||
|
lcdClear();
|
||||||
|
lcdDrawNumber(0, 1, 105, PREC1|SMLSIZE|LEFT);
|
||||||
|
lcdDrawNumber(0, LCD_H-7, 105, PREC1|SMLSIZE|LEFT|INVERS);
|
||||||
|
lcdDrawNumber(LCD_W, 1, 105, PREC2|SMLSIZE);
|
||||||
|
lcdDrawNumber(LCD_W, LCD_H-7, 105, PREC2|SMLSIZE|INVERS);
|
||||||
|
EXPECT_TRUE(checkScreenshot("SmlsizeDecimalPoint"));
|
||||||
|
}
|
||||||
|
|
||||||
TEST(Lcd, Smlsize)
|
TEST(Lcd, Smlsize)
|
||||||
{
|
{
|
||||||
lcdClear();
|
lcdClear();
|
||||||
|
|||||||
Reference in New Issue
Block a user