shithub: m8c

Download patch

ref: 97e6dd2b507017df92ea3bf2067ea8b6d297f72c
parent: d1c65b5850ba6e0979f1372b5feb33986ff7ee16
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
--