summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 1cd24e1..0e79a81 100644
--- a/src/map.c
+++ b/src/map.c
@@ -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;