From 421d9a77f67b5113ba9236c75763c744cf965842 Mon Sep 17 00:00:00 2001 From: tomcw Date: Sun, 6 Nov 2016 14:33:14 +0000 Subject: [PATCH] VideoRefreshScreen(): Use default args instead of passing 0 for arg0 --- source/Applewin.cpp | 2 +- source/Frame.cpp | 8 +++++--- source/NTSC.cpp | 2 +- source/Video.cpp | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index 22c2c769..a7b3f0d9 100644 --- a/source/Applewin.cpp +++ b/source/Applewin.cpp @@ -288,7 +288,7 @@ void ContinueExecution(void) if (g_bFullSpeed) VideoRedrawScreenDuringFullSpeed(g_dwCyclesThisFrame); else - VideoRefreshScreen(0); // Just copy the output of our Apple framebuffer to the system Back Buffer + VideoRefreshScreen(); // Just copy the output of our Apple framebuffer to the system Back Buffer MB_EndOfVideoFrame(); } diff --git a/source/Frame.cpp b/source/Frame.cpp index a482d15d..612003ea 100644 --- a/source/Frame.cpp +++ b/source/Frame.cpp @@ -1247,12 +1247,14 @@ LRESULT CALLBACK FrameWndProc ( if (g_nAppMode == MODE_DEBUG) { UINT debugVideoMode; - bool bIsVideoModeValid = DebugGetVideoMode(&debugVideoMode); - VideoRefreshScreen( bIsVideoModeValid ? debugVideoMode : 0, bIsVideoModeValid ); + if ( DebugGetVideoMode(&debugVideoMode) ) + VideoRefreshScreen(debugVideoMode, true); + else + VideoRefreshScreen(); } else { - VideoRefreshScreen(0); + VideoRefreshScreen(); } } diff --git a/source/NTSC.cpp b/source/NTSC.cpp index 8206095d..d6c0f315 100644 --- a/source/NTSC.cpp +++ b/source/NTSC.cpp @@ -768,7 +768,7 @@ inline void updateVideoScannerHorzEOL() g_nVideoClockVert = 0; updateFlashRate(); - //VideoRefreshScreen(0); // ContinueExecution() calls VideoRefreshScreen(0) every dwClksPerFrame (17030) + //VideoRefreshScreen(); // ContinueExecution() calls VideoRefreshScreen() every dwClksPerFrame (17030) } if (g_nVideoClockVert < VIDEO_SCANNER_Y_DISPLAY) diff --git a/source/Video.cpp b/source/Video.cpp index d7025779..0e4bd245 100644 --- a/source/Video.cpp +++ b/source/Video.cpp @@ -673,7 +673,7 @@ void VideoBenchmark () { FillMemory(mem+0x400,0x400,0x14); else CopyMemory(mem+0x400,mem+((cycle & 2) ? 0x4000 : 0x6000),0x400); - VideoRefreshScreen(0); + VideoRefreshScreen(); if (cycle++ >= 3) cycle = 0; totaltextfps++; @@ -695,7 +695,7 @@ void VideoBenchmark () { FillMemory(mem+0x2000,0x2000,0x14); else CopyMemory(mem+0x2000,mem+((cycle & 2) ? 0x4000 : 0x6000),0x2000); - VideoRefreshScreen(0); + VideoRefreshScreen(); if (cycle++ >= 3) cycle = 0; totalhiresfps++; @@ -786,7 +786,7 @@ void VideoBenchmark () { FillMemory(mem+0x2000,0x2000,0xAA); else CopyMemory(mem+0x2000,mem+((cycle & 2) ? 0x4000 : 0x6000),0x2000); - VideoRedrawScreen(); // VideoRefreshScreen(); + VideoRedrawScreen(); if (cycle++ >= 3) cycle = 0; realisticfps++;