From 4451f21fc93f3433b3d407ebceb201bc1a772f79 Mon Sep 17 00:00:00 2001 From: couriersud Date: Thu, 18 Apr 2019 00:00:02 +0200 Subject: breakout: slightly better fix. (nw) --- src/mame/drivers/pong.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/mame/drivers/pong.cpp b/src/mame/drivers/pong.cpp index 02442b7da96..2ec911faaab 100644 --- a/src/mame/drivers/pong.cpp +++ b/src/mame/drivers/pong.cpp @@ -115,10 +115,12 @@ TODO: Volleyball... * */ -#define MASTER_CLOCK_BREAKOUT (14318000) +//#define MASTER_CLOCK_BREAKOUT (14318000) +static const int NS_PER_CLOCK = static_cast((double) NETLIST_INTERNAL_RES / (double) 14318000 + 0.5); +static const int MASTER_CLOCK_BREAKOUT = static_cast((double) NETLIST_INTERNAL_RES / (double) NS_PER_CLOCK + 0.5); -#define V_TOTAL_BREAKOUT (0xFC) // 252 -#define H_TOTAL_BREAKOUT (448*2) // 448 +static const int V_TOTAL_BREAKOUT = (0xFC); // 252 +static const int H_TOTAL_BREAKOUT = (448*2); // 448 enum input_changed_enum { -- cgit v1.2.3