summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ariedlmayer@gmail.com>2025-08-07 22:12:58 -0400
committer AJR <ariedlmayer@gmail.com>2025-08-07 22:12:58 -0400
commit11485adbdac61fce856e929df34f31522fba5d9a (patch)
tree4abd402a0628b55fd0ca1d957acc3622716922d5
parent1b3e85919282566f3b4f48e33de33e2eff4c88ae (diff)
phoenix/naughtyb.cpp: Use raw parameters for screen
-rw-r--r--src/mame/phoenix/naughtyb.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mame/phoenix/naughtyb.cpp b/src/mame/phoenix/naughtyb.cpp
index a5eb3a1d910..35763117454 100644
--- a/src/mame/phoenix/naughtyb.cpp
+++ b/src/mame/phoenix/naughtyb.cpp
@@ -111,8 +111,6 @@ TODO:
#include "sound/tms36xx.h"
#include "speaker.h"
-#define CLOCK_XTAL 12000000
-
uint8_t naughtyb_state::in0_port_r()
{
int in0 = ioport("IN0")->read();
@@ -410,14 +408,11 @@ GFXDECODE_END
void naughtyb_state::naughtyb_base(machine_config &config)
{
/* basic machine hardware */
- Z80(config, m_maincpu, CLOCK_XTAL / 4); /* 12 MHz clock, divided by 4. CPU is a Z80A */
+ Z80(config, m_maincpu, 12_MHz_XTAL / 4); // 12 MHz clock, divided by 4. CPU is a Z80A
/* video hardware */
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
- m_screen->set_refresh_hz(60);
- m_screen->set_vblank_time(ATTOSECONDS_IN_USEC(2500)); /* not accurate */
- m_screen->set_size(36*8, 28*8);
- m_screen->set_visarea(0*8, 36*8-1, 0*8, 28*8-1);
+ m_screen->set_raw(12_MHz_XTAL / 2, 384, 0, 288, 256, 0, 224);
m_screen->set_screen_update(FUNC(naughtyb_state::screen_update));
m_screen->set_palette(m_palette);