Skip to content

Commit

Permalink
Remove warn() branches on more SDL render functions with changed retu…
Browse files Browse the repository at this point in the history
…rn types.
  • Loading branch information
AliceLR committed Nov 7, 2024
1 parent 6a02046 commit 420a59a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/render_sdlaccel.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,8 @@ static boolean sdlaccel_create_window(struct graphics_data *graphics,
goto err_free;
}

if(SDL_SetTextureBlendMode(texture[TEX_CHARS], SDL_BLENDMODE_BLEND))
warn("Failed to set char texture blend mode: %s\n", SDL_GetError());
if(SDL_SetTextureBlendMode(texture[TEX_BACKGROUND], SDL_BLENDMODE_BLEND))
warn("Failed to set bg texture blend mode: %s\n", SDL_GetError());
SDL_SetTextureBlendMode(texture[TEX_CHARS], SDL_BLENDMODE_BLEND);
SDL_SetTextureBlendMode(texture[TEX_BACKGROUND], SDL_BLENDMODE_BLEND);

sdl_set_texture_scale_mode(graphics, window, TEX_SCREEN, true);
sdl_set_texture_scale_mode(graphics, window, TEX_CHARS, false);
Expand Down

0 comments on commit 420a59a

Please sign in to comment.