Previous 199869 Revisions Next

r17864 Thursday 13th September, 2012 at 14:11:53 UTC by Curt Coder
(MESS) Removed palette access. (nw)
[src/mess/machine]c64_xl80.c

trunk/src/mess/machine/c64_xl80.c
r17863r17864
8181
8282void c64_xl80_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, void *param)
8383{
84   const rgb_t *palette = palette_entry_list_raw(bitmap.palette());
8584   for (int column = 0; column < x_count; column++)
8685   {
8786      UINT8 code = m_ram[((ma + column) & 0x7ff)];
r17863r17864
9897         int x = (column * 8) + bit;
9998         int color = BIT(data, 7) ? 7 : 0;
10099
101         bitmap.pix32(y, x) = palette[color];
100         bitmap.pix32(y, x) = RGB_MONOCHROME_WHITE[color];
102101
103102         data <<= 1;
104103      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team