bus/nubus: Fixed aspect ratio of portrait screen, and fixed mc30 regression.

This commit is contained in:
Vas Crabb 2022-06-18 05:58:30 +10:00
parent 6afc168d54
commit 685d47fe5e
3 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,7 @@ void nubus_wsportrait_device::device_add_mconfig(machine_config &config)
screen.set_size(1024, 960);
screen.set_refresh_hz(75.0);
screen.set_visarea(0, 640-1, 0, 870-1);
screen.set_physical_aspect(3, 4);
}
//-------------------------------------------------

View File

@ -208,7 +208,7 @@ uint32_t nubus_xceedmc30_device::screen_update(screen_device &screen, bitmap_rgb
case 4: // 24 bpp
for (int y = 0; y < 480; y++)
{
std::copy_n(&m_vram[y * 1024], 640, &bitmap.pix(y));
std::copy_n(&m_vram[(y * 1024) + (1024 / 8)], 640, &bitmap.pix(y));
}
break;

View File

@ -43,7 +43,7 @@ private:
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
std::vector<uint8_t> m_vram;
std::vector<uint32_t> m_vram;
uint32_t m_mode, m_vbl_disable, m_toggle;
uint32_t m_palette[256], m_colors[3], m_count, m_clutoffs;
emu_timer *m_timer;