Skip to content

Commit

Permalink
minor warning (C4706) fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 30, 2023
1 parent 189f8f0 commit bfc8f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL12_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -7696,7 +7696,7 @@ SDL_DisplayYUVOverlay(SDL12_Overlay *overlay12, SDL12_Rect *dstrect12)
{
QueuedOverlayItem *overlay;
SDL12_YUVData *hwdata;
SDL_Renderer *renderer = NULL;
SDL_Renderer *renderer;
const SDL_bool ThisIsSetVideoModeThread = (SDL20_ThreadID() == SetVideoModeThread) ? SDL_TRUE : SDL_FALSE;

if (!overlay12) {
Expand All @@ -7705,7 +7705,7 @@ SDL_DisplayYUVOverlay(SDL12_Overlay *overlay12, SDL12_Rect *dstrect12)
if (!dstrect12) {
return SDL20_InvalidParamError("dstrect");
}
if (!(renderer = LockVideoRenderer())) {
if ((renderer = LockVideoRenderer()) == NULL) {
return SDL20_SetError("No software screen surface available");
}

Expand Down

0 comments on commit bfc8f94

Please sign in to comment.