summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pong.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pong.cpp')
-rw-r--r--src/mame/drivers/pong.cpp8
1 files 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<int>((double) NETLIST_INTERNAL_RES / (double) 14318000 + 0.5);
+static const int MASTER_CLOCK_BREAKOUT = static_cast<int>((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
{