foxygit / fake-08-xbox360 Log in
commit ea6b4222c4b5dfb077a84f1a2f9b8c9cda7a1c0f
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Fri Sep 16 17:08:11 2022 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Fri Sep 16 17:08:11 2022 -0600

    Clear screen before flip on miyoo mini

    Should fix flicker introduced by double buffering
---
 platform/miyoomini/source/MiyooMiniHost.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/platform/miyoomini/source/MiyooMiniHost.cpp b/platform/miyoomini/source/MiyooMiniHost.cpp
index d239f86..372f368 100644
--- a/platform/miyoomini/source/MiyooMiniHost.cpp
+++ b/platform/miyoomini/source/MiyooMiniHost.cpp
@@ -87,6 +87,9 @@ uint32_t _mapped32BitColors[144];
 void postFlipFunction(){
     // We're done rendering, so we end the frame here.

+    //Fill whole window with black. Avoid double buffering flicker
+    SDL_FillRect(window, 0, 0);
+
     SDL_SoftStretch(texture, &SrcR, window, &DestR);

     SDL_Flip(window);