NetDeck: freeze tint stamps a checkered 8x8 sprite pattern
- replace the nonexistent draw16bppSprite_P(NULL,...) call with pushImage(bx, by, 8, 8, checkered8x8): device = TFT_eSprite::pushImage (blits into the fb sprite), emulator = new shim TFT_eSPI::pushImage blit into the host framebuffer — same signature on both backends - shim: define PROGMEM (no-op on host/ESP32, flash is memory-mapped) - pattern data fixed into a real 2px checkerboard (black / 0x1F1F teal) - E2E pixel assertions updated to the checker geometry Verified: make netdeck (both targets) + full test suite, 0 failures
This commit is contained in:
@@ -114,10 +114,12 @@ TEST(e2e/boot_and_controls)
|
||||
|
||||
// HUD separator rendered across the top of the HUD bar
|
||||
EXPECT(test::pixelIs565(160, nd::HUD_Y, nd::C_BORDER));
|
||||
// paused -> freeze scanlines: every 3rd view row is black
|
||||
EXPECT(test::pixelIs565(50, 0, 0x0000));
|
||||
EXPECT(test::pixelIs565(50, 3, 0x0000));
|
||||
EXPECT(!test::pixelIs565(50, 1, 0x0000));
|
||||
// paused -> checkered freeze tint: 2px checker of black + dark teal
|
||||
// P(x,y): black when ((x>>1)+(y>>1)) is even
|
||||
EXPECT(test::pixelIs565(50, 0, 0x1F1F)); // (25+0) odd -> teal
|
||||
EXPECT(test::pixelIs565(50, 2, 0x0000)); // (25+1) even -> black
|
||||
EXPECT(test::pixelIs565(52, 0, 0x0000)); // (26+0) even -> black
|
||||
EXPECT(!test::pixelIs565(52, 0, 0x1F1F));
|
||||
}
|
||||
|
||||
TEST(e2e/network_journey)
|
||||
|
||||
Reference in New Issue
Block a user