atari/antic.cpp: display area is 240 in both NTSC and PAL, fixes cut top/bottom in crystalr and mileage

This commit is contained in:
angelosa 2022-10-06 00:57:13 +02:00
parent 2e341912d5
commit 3c2a9dfa27
2 changed files with 5 additions and 5 deletions

View File

@ -22,8 +22,8 @@ class antic_device : public device_t, public device_video_interface
{
private:
static constexpr unsigned VBL_END = 8; // vblank ends in this scanline
static constexpr unsigned VDATA_START = 11; // video display begins in this scanline
static constexpr unsigned VDATA_END = 244; // video display ends in this scanline
static constexpr unsigned VDATA_START = 8; // video display begins in this scanline
static constexpr unsigned VDATA_END = 248; // video display ends in this scanline
static constexpr unsigned VBL_START = 248; // vblank starts in this scanline
public:
@ -40,7 +40,7 @@ public:
static constexpr unsigned MIN_X = ((HWIDTH - 42) / 2) * 8;
static constexpr unsigned MAX_X = MIN_X + (42 * 8) - 1;
static constexpr unsigned MIN_Y = VDATA_START;
static constexpr unsigned MAX_Y = VDATA_END - 8 - 1;
static constexpr unsigned MAX_Y = VDATA_END - 1;
// construction/destruction
antic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

View File

@ -2126,7 +2126,7 @@ void a400_state::a800xl_pia_pb_w(uint8_t data)
*
**************************************************************/
// note: both screen setups are actually non-interlaced
// note: both screen setups are actually non-interlaced, and always 240 lines
void a400_state::config_ntsc_screen(machine_config &config)
{
// 15.69975KHz x 59.9271 Hz
@ -2137,7 +2137,7 @@ void a400_state::config_ntsc_screen(machine_config &config)
void a400_state::config_pal_screen(machine_config &config)
{
// 15.55655KHz x 49.86074 Hz, master clock rated at 14.18757 MHz
// TODO: must have bigger vertical overscan, confirm hsync
// TODO: confirm hsync
m_screen->set_raw(XTAL(3'546'800) * 4, 912, antic_device::MIN_X, antic_device::MAX_X, 312, antic_device::MIN_Y, antic_device::MAX_Y);
m_gtia->set_region(GTIA_PAL);
}