summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/aleck64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/aleck64.cpp')
-rw-r--r--src/mame/drivers/aleck64.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/aleck64.cpp b/src/mame/drivers/aleck64.cpp
index b4ed3c70d57..e8c52ad6769 100644
--- a/src/mame/drivers/aleck64.cpp
+++ b/src/mame/drivers/aleck64.cpp
@@ -948,9 +948,9 @@ MACHINE_CONFIG_END
uint32_t aleck64_state::screen_update_e90(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
bitmap.fill(0, cliprect);
- screen_update_n64(screen,bitmap,cliprect);
+ screen_update_n64(screen,bitmap,cliprect);
// TODO: extract from the real tables (maybe RLEd inside paletteram words 0xa - 0xf?)
- static constexpr u8 pal_table[8*8] =
+ static constexpr u8 pal_table[8*8] =
{
8, 6, 6, 6, 6, 5, 4, 3,
9, 7, 5, 6, 4, 1, 1, 4,
@@ -961,7 +961,7 @@ uint32_t aleck64_state::screen_update_e90(screen_device &screen, bitmap_rgb32 &b
9, 8, 8, 8, 8, 8, 7, 6,
8, 9, 9, 9, 9, 9, 9, 8
};
-
+
for(int offs=0;offs<0x1000/4;offs+=2)
{
int xi,yi;
@@ -970,14 +970,14 @@ uint32_t aleck64_state::screen_update_e90(screen_device &screen, bitmap_rgb32 &b
int pal_shift;
// 0x400 is another enable? end code if off?
//uint16_t tile = m_e90_vram[offs] >> 16;
-
- // TODO: mask 0x300 on tile seems to be tile number
+
+ // TODO: mask 0x300 on tile seems to be tile number
// (active piece drawn with 0x100, special square blocks drawn with cycling 0x1c0, 0x200 & 0x240)
uint16_t attr = m_e90_vram[offs] & 0xffff;
// bit 5 disables?
if(attr & 0x20)
continue;
-
+
// guess: 0x1000 entries / word / 4bpp = 0x7f, divided by two below
// bits 5 and 6 of palette bank seems to be highlight and shadow, separated from this bank
uint16_t pal = (attr & 0x06) >> 1;
@@ -987,7 +987,7 @@ uint32_t aleck64_state::screen_update_e90(screen_device &screen, bitmap_rgb32 &b
// ghost piece, probably enabled thru one bit of these (as weird as it sounds)
if((y & 0xff00) == 0xbc00)
pal |= (0x40 >> 1);
-
+
// color banks
// some pieces needs this color adjustment (see T piece / 5 block version of I piece)
pal |= (attr & 0xc0) >> 4;
@@ -1011,7 +1011,7 @@ uint32_t aleck64_state::screen_update_e90(screen_device &screen, bitmap_rgb32 &b
r = pal5bit(r);
g = pal5bit(g);
b = pal5bit(b);
-
+
if(cliprect.contains(res_x, res_y))
bitmap.pix32(res_y, res_x) = r << 16 | g << 8 | b;
}