diff options
author | hap <happppp@users.noreply.github.com> | 2019-07-13 03:21:08 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2019-07-13 03:21:27 +0200 |
commit | 04ae42eee5049dad40163846472b0b3a6516574f (patch) | |
tree | 1759016cf1c890ce095231c423144d12ff3d0873 | |
parent | c8dc4bb558d4dcc67de3c12a8e131f9a003da5a6 (diff) |
nitedrvr: change resolution to 256x240 (nw)
-rw-r--r-- | src/mame/drivers/nitedrvr.cpp | 4 | ||||
-rw-r--r-- | src/mame/video/nitedrvr.cpp | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/drivers/nitedrvr.cpp b/src/mame/drivers/nitedrvr.cpp index 8cb9572a515..e0628808593 100644 --- a/src/mame/drivers/nitedrvr.cpp +++ b/src/mame/drivers/nitedrvr.cpp @@ -123,7 +123,7 @@ INPUT_PORTS_END static const gfx_layout charlayout = { - 8, 8, + 8, 16, 64, 1, { 0 }, @@ -153,7 +153,7 @@ void nitedrvr_state::nitedrvr(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); - screen.set_raw(12.096_MHz_XTAL / 2, 384, 0, 256, 278, 0, 256); // ~57 Hz + screen.set_raw(12.096_MHz_XTAL / 2, 384, 0, 256, 262, 0, 240); // PROM derives VRESET, VBLANK, VSYNC, IRQ from vertical scan count and last VBLANK screen.set_screen_update(FUNC(nitedrvr_state::screen_update_nitedrvr)); screen.set_palette(m_palette); diff --git a/src/mame/video/nitedrvr.cpp b/src/mame/video/nitedrvr.cpp index df5eb9fd379..6ef13d33553 100644 --- a/src/mame/video/nitedrvr.cpp +++ b/src/mame/video/nitedrvr.cpp @@ -25,7 +25,8 @@ TILE_GET_INFO_MEMBER(nitedrvr_state::get_bg_tile_info) void nitedrvr_state::video_start() { - m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(nitedrvr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 4); + // note: tile rows ignored on V&8, V&64, V&128 + m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(nitedrvr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 16, 32, 4); } void nitedrvr_state::draw_box(bitmap_ind16 &bitmap, const rectangle &cliprect, int bx, int by, int ex, int ey) @@ -57,7 +58,7 @@ uint32_t nitedrvr_state::screen_update_nitedrvr(screen_device &screen, bitmap_in // don't wrap playfield rectangle clip = cliprect; - if (clip.max_y > 31) clip.max_y = 31; + if (clip.max_y > 63) clip.max_y = 63; m_bg_tilemap->draw(screen, bitmap, clip, 0, 0); draw_roadway(bitmap, cliprect); |