summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <robbbert@users.noreply.github.com>2013-12-19 12:24:39 +0000
committer Robbbert <robbbert@users.noreply.github.com>2013-12-19 12:24:39 +0000
commit4c48a72cd11869719fa50fd777cde3a68979eace (patch)
treeb3d1ffd95d9bbefd94cd7074f54b32c2ec172c69
parent614b76c0fec49515e14ff614a33c7dd79364140f (diff)
(MESS) bbc : added back the cursor
Note: in mode 7 (default), it's the text which is out of position.
-rw-r--r--src/mess/video/bbc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/video/bbc.c b/src/mess/video/bbc.c
index 2c0f29ee522..7cc7301f24c 100644
--- a/src/mess/video/bbc.c
+++ b/src/mess/video/bbc.c
@@ -198,7 +198,7 @@ static MC6845_UPDATE_ROW( vid_update_row )
state->m_trom->tr6_w(1);
state->m_trom->tr6_w(0);
- int col=state->m_trom->get_rgb();
+ int col=state->m_trom->get_rgb() ^ ((x_pos==cursor_x) ? 7 : 0);
int r = BIT(col, 0) * 0xff;
int g = BIT(col, 1) * 0xff;
@@ -230,7 +230,7 @@ static MC6845_UPDATE_ROW( vid_update_row )
for(int pixelno=0;pixelno<state->m_pixels_per_byte;pixelno++)
{
- int col=state->m_videoULA_pallet_lookup[state->m_pixel_bits[i]];
+ int col=state->m_videoULA_pallet_lookup[state->m_pixel_bits[i]] ^ ((x_pos==cursor_x) ? 7 : 0);
bitmap.pix32(y, (x_pos*state->m_pixels_per_byte)+pixelno)=palette[col];
i=(i<<1)|1;
}