From 5496c8e02419893068b47d9ec891298cfed46b32 Mon Sep 17 00:00:00 2001 From: SuuperW Date: Fri, 6 Jul 2018 11:45:38 -0500 Subject: [PATCH] Remove the now unused firstTime parameter of DoDisplay. --- desmume/src/frontend/windows/main.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/desmume/src/frontend/windows/main.cpp b/desmume/src/frontend/windows/main.cpp index 5148d9963..286e3d7f4 100755 --- a/desmume/src/frontend/windows/main.cpp +++ b/desmume/src/frontend/windows/main.cpp @@ -1989,7 +1989,7 @@ static void DoDisplay_DrawHud() } //does a single display work unit. only to be used from the display thread -static void DoDisplay(bool firstTime) +static void DoDisplay() { Lock lock (win_backbuffer_sync); @@ -2063,13 +2063,8 @@ void displayProc() currDisplayBuffer = todo; video.srcBuffer = (u8*)displayBuffers[currDisplayBuffer].buffer; video.srcBufferSize = displayBuffers[currDisplayBuffer].size; - - DoDisplay(true); - } - else - { - DoDisplay(false); } + DoDisplay(); } @@ -2116,7 +2111,7 @@ void Display() { video.srcBuffer = (u8*)dispInfo.masterCustomBuffer; video.srcBufferSize = dispInfo.customWidth * dispInfo.customHeight * dispInfo.pixelBytes * 2; - DoDisplay(true); + DoDisplay(); } else { @@ -2260,7 +2255,7 @@ static void StepRunLoop_Paused() if(CommonSettings.single_core() && GetActiveWindow() == mainLoopData.hwnd) { video.srcBuffer = (u8*)GPU->GetDisplayInfo().masterCustomBuffer; - DoDisplay(true); + DoDisplay(); } ServiceDisplayThreadInvocations(); @@ -5126,7 +5121,7 @@ DOKEYDOWN: { const NDSDisplayInfo &dispInfo = GPU->GetDisplayInfo(); video.srcBuffer = (u8*)dispInfo.masterCustomBuffer; - DoDisplay(true); + DoDisplay(); } }