From f0f39a3e80ee0da53cf5648318a16eb4cedc54ca Mon Sep 17 00:00:00 2001 From: Fabio D'Urso Date: Sun, 26 Oct 2025 21:33:47 +0000 Subject: [PATCH] ef9345: Fix underline condition for ts9345 variant The check should be done on the "type", already extracted and masked a few lines above, rather than on the raw value of "b". --- src/devices/video/ef9345.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/video/ef9345.cpp b/src/devices/video/ef9345.cpp index 8dff1a41cc03b..28fb1b66d9b62 100644 --- a/src/devices/video/ef9345.cpp +++ b/src/devices/video/ef9345.cpp @@ -732,7 +732,7 @@ void ef9345_device::makechar_24x40(uint16_t x, uint16_t y) const uint8_t f = BIT(a, 3); //flash const uint8_t m = BIT(b, 2); //conceal const uint8_t n = BIT(a, 7); //negative - const uint8_t u = (((b & 0x60) == 0) || ((b & 0xc0) == 0x40)) ? BIT(b, 4) : 0; //underline + const uint8_t u = (((type & 0x6) == 0) || ((type & 0xc) == 0x4)) ? BIT(b, 4) : 0; //underline bichrome40(type, address, dial, iblock, x, y, c0, c1, i, f, m, n, u); }