diff options
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -540,6 +540,11 @@ db_map_render(struct db_map *map, SDL_Renderer *renderer) map->h * map->th); old_target = SDL_GetRenderTarget(renderer); SDL_SetRenderTarget(renderer, texture); + if (SDL_SetRenderDrawColor(renderer, + map->bg_r, map->bg_g, map->bg_b, 0xFF) != 0) { + db_err("Failed to set drawing color (%s)", SDL_GetError()); + return NULL; + } if (SDL_RenderClear(renderer) != 0) { db_err("Failed to clear texture (%s)", SDL_GetError()); return NULL; |