shithub: m8c

Download patch

ref: e26618cbc4235135b1e39f8873818a3276791bb8
parent: 5b8ff8235dcc3a4acbb078b69a946bfd055da20f
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sun Apr 10 05:15:16 EDT 2022

remove tick checking from render_screen to fix fx palette rendering bug

--- a/render.c
+++ b/render.c
@@ -179,8 +179,6 @@
 
 void render_screen() {
 
-  if (SDL_GetTicks() - ticks > 14) {
-    ticks = SDL_GetTicks();
     SDL_SetRenderTarget(rend, NULL);
     SDL_SetRenderDrawColor(rend, 0, 0, 0, 0);
     SDL_RenderClear(rend);
@@ -195,5 +193,4 @@
       SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "%.1f fps\n", (float)fps / 5);
       fps = 0;
     }
-  }
 }
--