summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/mikromik.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/mikromik.cpp')
-rw-r--r--src/mame/video/mikromik.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mame/video/mikromik.cpp b/src/mame/video/mikromik.cpp
index 90c779d5179..ee2fb0f8fe3 100644
--- a/src/mame/video/mikromik.cpp
+++ b/src/mame/video/mikromik.cpp
@@ -19,7 +19,6 @@ I8275_DRAW_CHARACTER_MEMBER( mm1_state::crtc_display_pixels )
int compl_in = rvv; // reverse video
int hlt_in = hlgt; // highlight;
int color; // 0 = black, 1 = dk green, 2 = lt green; on MikroMikko 1, "highlight" is actually the darker shade of green
- int i, qh, video_in;
int d7 = BIT(romdata, 7); // save MSB (1 indicates that this is a Visual Attribute or Special Code instead of a normal display character)
int d6 = BIT(romdata, 6); // save also first and last char bitmap bits before shifting out the MSB
@@ -37,19 +36,19 @@ I8275_DRAW_CHARACTER_MEMBER( mm1_state::crtc_display_pixels )
// Step 2: Make sure i8275_device::recompute_parameters() is called in i8275_device::device_start()
// Step 3: Fill in missing 2 pixels in the screen bitmap by repeating last column of the char bitmap
// (works better with MikroMikko 1 font than duplicating the first and the last column)
- qh = d7 & d6; // extend pixels on the right side only if there were two adjacent ones before shifting out the MSB
- video_in = ((((d7 & llen) | (vsp ? 0 : 1)) & (gpa0 ? 0 : 1)) & qh) | lten;
+ int qh = d7 & d6; // extend pixels on the right side only if there were two adjacent ones before shifting out the MSB
+ int video_in = ((((d7 & llen) | (vsp ? 0 : 1)) & (gpa0 ? 0 : 1)) & qh) | lten;
color = (hlt_in ? 1 : 2) * (video_in ^ compl_in);
- bitmap.pix32(y, x + 8) = m_palette->pen(color);
- bitmap.pix32(y, x + 9) = m_palette->pen(color);
+ bitmap.pix(y, x + 8) = m_palette->pen(color);
+ bitmap.pix(y, x + 9) = m_palette->pen(color);
}
- for (i = 0; i < 8; ++i) // ...and now the actual character bitmap bits for this scanline
+ for (int i = 0; i < 8; ++i) // ...and now the actual character bitmap bits for this scanline
{
- qh = BIT(data, i);
- video_in = ((((d7 & llen) | (vsp ? 0 : 1)) & (gpa0 ? 0 : 1)) & qh) | lten;
+ int qh = BIT(data, i);
+ int video_in = ((((d7 & llen) | (vsp ? 0 : 1)) & (gpa0 ? 0 : 1)) & qh) | lten;
color = (hlt_in ? 1 : 2)*(video_in ^ compl_in);
- bitmap.pix32(y, x + i) = m_palette->pen(color);
+ bitmap.pix(y, x + i) = m_palette->pen(color);
}
}
}
@@ -75,7 +74,7 @@ UPD7220_DISPLAY_PIXELS_MEMBER( mm1_state::hgdc_display_pixels )
uint16_t data = m_video_ram[address >> 1];
for (int i = 0; i < 16; i++)
{
- if (BIT(data, i)) bitmap.pix32(y, x + i) = m_palette->pen(2);
+ if (BIT(data, i)) bitmap.pix(y, x + i) = m_palette->pen(2);
}
}