Skip to content

Commit

Permalink
detect SDL version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 19, 2024
1 parent 1426c66 commit 6f42bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toxblinkenwall/toxblinkenwall.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ static int gen_display_yuvtex_init(void *gen_display_st, int width, int height)
int res_scale = SDL_SetTextureScaleMode(st->texture, SDL_ScaleModeBest);
#else
// SDL version 3.x
int res_scale = SDL_SetTextureScaleMode(st->texture, SDL_SCALEMODE_BEST);
// int res_scale = SDL_SetTextureScaleMode(st->texture, SDL_SCALEMODE_BEST);
#endif
if (res_scale != 0) {
dbg(0, "SDL:SDL_SetTextureScaleMode SDL_Error\n");
Expand Down

0 comments on commit 6f42bf1

Please sign in to comment.