WinVideo: share some generic code (PR #901)

* WinVideo: move some generic functions back to Video.

Introduce a new virtual function (VideoPresentScreen) to draw the video buffer to video memory.

* Move Win32Frame::VideoRedrawScreen() to FrameBase as it is generic.
This commit is contained in:
Andrea
2020-12-29 21:30:17 +00:00
committed by GitHub
parent b226bdfd53
commit d0cd7ca090
9 changed files with 79 additions and 83 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ static void ContinueExecution(void)
if (g_bFullSpeed)
GetVideo().VideoRedrawScreenDuringFullSpeed(g_dwCyclesThisFrame);
else
GetVideo().VideoRefreshScreen(); // Just copy the output of our Apple framebuffer to the system Back Buffer
GetVideo().VideoPresentScreen(); // Just copy the output of our Apple framebuffer to the system Back Buffer
}
#ifdef LOG_PERF_TIMINGS