ref: de00892f333cd27b2a42b53266d9940365bc7024
parent: 55d604a8a0ec9fe180e13886c86ddf9e8e868134
parent: 97e6dd2b507017df92ea3bf2067ea8b6d297f72c
author: Jonne Kokkonen <jonne.kokkonen@gmail.com>
date: Sun Apr 10 05:45:54 EDT 2022
Merge pull request #55 from laamaa/bugfix/fx_palette_rendering Bugfix/fx palette rendering
--- 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;
@@ -22,8 +21,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
@@ -179,8 +176,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 +190,4 @@
SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "%.1f fps\n", (float)fps / 5);
fps = 0;
}
- }
}
--
⑨