shithub: m8c

Download patch

ref: 04c7631f0db2ef54a47d84fb032fe47bf149d5ee
parent: e26618cbc4235135b1e39f8873818a3276791bb8
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sun Apr 10 05:17:08 EDT 2022

remove unused variable

--- a/render.c
+++ b/render.c
@@ -14,7 +14,6 @@
 SDL_Texture *maintexture;
 SDL_Color background_color = (SDL_Color){0, 0, 0, 0};
 
-static uint32_t ticks;
 static uint32_t ticks_fps;
 static int fps;
 uint8_t fullscreen = 0;
@@ -21,8 +20,6 @@
 
 // Initializes SDL and creates a renderer and required surfaces
 int initialize_sdl(int init_fullscreen, int init_use_gpu) {
-
-  ticks = SDL_GetTicks();
 
   const int window_width = 640;  // SDL window width
   const int window_height = 480; // SDL window height
--