diff options
author | 2016-11-02 18:39:59 +1300 | |
---|---|---|
committer | 2016-11-02 18:41:27 +1300 | |
commit | 7fc31a0776473664273c399ae4d36c4c9884f1b2 (patch) | |
tree | 7363fddb280a679d0714a4a5580e1fa985be2ce0 | |
parent | d73b45f2c5aca88d6d422528b51445612dbb8ebf (diff) |
octopus: add cursor display
-rw-r--r-- | src/mame/drivers/octopus.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mame/drivers/octopus.cpp b/src/mame/drivers/octopus.cpp index 4228957cf45..9d05e0cd9f2 100644 --- a/src/mame/drivers/octopus.cpp +++ b/src/mame/drivers/octopus.cpp @@ -750,8 +750,16 @@ SCN2674_DRAW_CHARACTER_MEMBER(octopus_state::display_pixels) { uint8_t tile = m_vram[address & 0x0fff]; uint8_t data = m_fontram[(tile * 16) + linecount]; - for (int z=0;z<8;z++) - bitmap.pix32(y,x + z) = BIT(data,z) ? rgb_t::white() : rgb_t::black(); + if(cursor && !blink) + { + for (int z=0;z<8;z++) + bitmap.pix32(y,x + z) = BIT(data,z) ? rgb_t::black() : rgb_t::white(); + } + else + { + for (int z=0;z<8;z++) + bitmap.pix32(y,x + z) = BIT(data,z) ? rgb_t::white() : rgb_t::black(); + } } } |