diff options
| author | 2025-10-27 04:17:35 +0100 | |
|---|---|---|
| committer | 2025-10-26 23:17:35 -0400 | |
| commit | 62d0ebd28b63f84d5e6a903d7f7bc71546eb58c6 (patch) | |
| tree | be96b6ce512924961840c074ac8b9852ce5d4568 | |
| parent | f32d3340dedabcb2743bce26619a88314ce03ab5 (diff) | |
ef9345: Fix underline condition for ts9345 variant (#14424)
The check should be done on the "type", already extracted and masked a few lines above, rather than on the raw value of "b".
| -rw-r--r-- | src/devices/video/ef9345.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/video/ef9345.cpp b/src/devices/video/ef9345.cpp index af1603455b1..bde4a3d37b8 100644 --- a/src/devices/video/ef9345.cpp +++ b/src/devices/video/ef9345.cpp @@ -739,7 +739,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); } |
