From 52e150bcfd4128784bb73fb418ed076c99e887c1 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Tue, 21 Mar 2023 07:41:15 +1100 Subject: -render/d3d/d3dhlsl.cpp: Fixed alpha value when clearing target. [Ryan Holtz] -jaleco/tetrisp2_v.cpp: Fixed stepstag text display. [Vas Crabb] --- src/mame/jaleco/tetrisp2_v.cpp | 2 +- src/mame/misc/homedata.cpp | 14 +++++++------- src/mame/misc/homedata_v.cpp | 6 +++--- src/osd/modules/render/d3d/d3dhlsl.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/mame/jaleco/tetrisp2_v.cpp b/src/mame/jaleco/tetrisp2_v.cpp index 6d60d22ba43..3d69a5a0c0b 100644 --- a/src/mame/jaleco/tetrisp2_v.cpp +++ b/src/mame/jaleco/tetrisp2_v.cpp @@ -157,7 +157,7 @@ void tetrisp2_state::tetrisp2_vram_fg_w(offs_t offset, u16 data, u16 mem_mask) { // VJ and Stepping Stage write to the upper byte here to display ASCII text, // other usages in those games outside of ASCII text write a full 16-bit value. - m_vram_fg[offset] = data; + m_vram_fg[offset] = data & 0x00ff; m_tilemap_fg->mark_tile_dirty(offset/2); } diff --git a/src/mame/misc/homedata.cpp b/src/mame/misc/homedata.cpp index ea94bb83801..ebd6e5c1d79 100644 --- a/src/mame/misc/homedata.cpp +++ b/src/mame/misc/homedata.cpp @@ -61,10 +61,10 @@ Notes: TODO: -- Dip switches! They might be right for mjhokite, but I haven't verified the other +- DIP switches! They might be right for mjhokite, but I haven't verified the other games. -- In the newer mahjong games, the second bank of dips is read in reverse order. +- In the newer mahjong games, the second bank of DIPs is read in reverse order. - In mjikaga bit 2 of bankswitch_w() and bit 7 of pteacher_blitter_bank_w() might have some other function, since the ROMs are smaller. @@ -617,7 +617,7 @@ static INPUT_PORTS_START( mjhokite ) PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:8") PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) - PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:7" ) + PORT_DIPUNUSED_DIPLOC( 0x02, 0x02, "SW1:7" ) PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW1:6,5") PORT_DIPSETTING( 0x00, DEF_STR( 3C_1C ) ) PORT_DIPSETTING( 0x04, DEF_STR( 2C_1C ) ) @@ -644,11 +644,11 @@ static INPUT_PORTS_START( mjhokite ) PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPUNUSED_DIPLOC( 0x04, 0x04, "SW2:6" ) - PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:5" ) + PORT_DIPUNUSED_DIPLOC( 0x08, 0x08, "SW2:5" ) PORT_DIPUNUSED_DIPLOC( 0x10, 0x10, "SW2:4" ) - PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW2:3" ) + PORT_DIPUNUSED_DIPLOC( 0x20, 0x20, "SW2:3" ) PORT_DIPUNUSED_DIPLOC( 0x40, 0x40, "SW2:2" ) - PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:1" ) + PORT_DIPUNUSED_DIPLOC( 0x80, 0x80, "SW2:1" ) PORT_START("IN0") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) @@ -668,7 +668,7 @@ static INPUT_PORTS_START( mjhokite ) PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_MAHJONG_I ) PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_MAHJONG_M ) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_MAHJONG_KAN ) - PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) PORT_START("KEY1") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_MAHJONG_B ) diff --git a/src/mame/misc/homedata_v.cpp b/src/mame/misc/homedata_v.cpp index dcfad254e6e..b432c920576 100644 --- a/src/mame/misc/homedata_v.cpp +++ b/src/mame/misc/homedata_v.cpp @@ -405,7 +405,7 @@ inline void mrokumei_state::mrokumei_info0(tile_data &tileinfo, int tile_index, int const code = m_videoram[addr + 1] + ((attr & 0x03) << 8) + (gfxbank << 10); int const color = (attr >> 2) + (gfxbank << 6); - tileinfo.set(0, code, color, m_flipscreen ); + tileinfo.set(0, code, color, m_flipscreen); } inline void mrokumei_state::mrokumei_info1(tile_data &tileinfo, int tile_index, int page, int gfxbank) @@ -415,7 +415,7 @@ inline void mrokumei_state::mrokumei_info1(tile_data &tileinfo, int tile_index, int const code = m_videoram[addr + 1] + ((attr & 0x07) << 8) + (gfxbank << 11); int const color = (attr >> 3) + ((gfxbank & 3) << 6); - tileinfo.set(1, code, color, m_flipscreen ); + tileinfo.set(1, code, color, m_flipscreen); } TILE_GET_INFO_MEMBER(mrokumei_state::mrokumei_get_info0_0) @@ -449,7 +449,7 @@ inline void homedata_upd7807_state::reikaids_info(tile_data &tileinfo, int tile_ if (attr & 0x80) flags ^= TILE_FLIPX; - tileinfo.set(layer, code, color, flags ); + tileinfo.set(layer, code, color, flags); } /* reikaids_gfx_bank[0]: diff --git a/src/osd/modules/render/d3d/d3dhlsl.cpp b/src/osd/modules/render/d3d/d3dhlsl.cpp index e2daedff166..7c30339853f 100644 --- a/src/osd/modules/render/d3d/d3dhlsl.cpp +++ b/src/osd/modules/render/d3d/d3dhlsl.cpp @@ -1032,7 +1032,7 @@ void shaders::blit( if (clear_dst) { - result = d3d->get_device()->Clear(0, nullptr, D3DCLEAR_TARGET, D3DCOLOR_ARGB(1,0,0,0), 0, 0); + result = d3d->get_device()->Clear(0, nullptr, D3DCLEAR_TARGET, D3DCOLOR_ARGB(0xff,0,0,0), 0, 0); if (FAILED(result)) { osd_printf_verbose("Direct3D: Error %08lX during device clear call\n", result); -- cgit v1.2.3