summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/decodmd2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/decodmd2.cpp')
-rw-r--r--src/mame/video/decodmd2.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mame/video/decodmd2.cpp b/src/mame/video/decodmd2.cpp
index 2bb975e2f61..81b3cad15ec 100644
--- a/src/mame/video/decodmd2.cpp
+++ b/src/mame/video/decodmd2.cpp
@@ -102,16 +102,15 @@ TIMER_DEVICE_CALLBACK_MEMBER(decodmd_type2_device::dmd_firq)
MC6845_UPDATE_ROW( decodmd_type2_device::crtc_update_row )
{
- uint8_t *RAM = m_ram->pointer();
- uint8_t intensity;
+ uint8_t const *const RAM = m_ram->pointer();
uint16_t addr = (ma & 0xfc00) + ((ma & 0x100)<<2) + (ra << 4);
for (int x = 0; x < 128; x += 8)
{
for (int dot = 0; dot < 8; dot++)
{
- intensity = ((RAM[addr] >> (7-dot) & 0x01) << 1) | (RAM[addr + 0x200] >> (7-dot) & 0x01);
- bitmap.pix32(y, x + dot) = rgb_t(0x3f * intensity, 0x2a * intensity, 0x00);
+ uint8_t intensity = ((RAM[addr] >> (7-dot) & 0x01) << 1) | (RAM[addr + 0x200] >> (7-dot) & 0x01);
+ bitmap.pix(y, x + dot) = rgb_t(0x3f * intensity, 0x2a * intensity, 0x00);
}
addr++;
}