Skip to content

Commit

Permalink
DirectFB: fix DirectFB_SetTextureScaleMode() declaration
Browse files Browse the repository at this point in the history
Fixes:

  src/video/directfb/SDL_DirectFB_render.c: In function ‘DirectFB_CreateRenderer’:
  src/video/directfb/SDL_DirectFB_render.c:1153:35: error: assignment to ‘void (*)(SDL_Renderer *, SDL_Texture *, SDL_ScaleMode)’ from incompatible pointer type ‘void (*)(void)’ [-Wincompatible-pointer-types]
   1153 |     renderer->SetTextureScaleMode = DirectFB_SetTextureScaleMode;
        |                                   ^

Signed-off-by: Peter Seiderer <[email protected]>
---
Notes:
  - declaration was just recently changed by commit 'Fix warning for Android
    NDK compiler: "function declaration without a prototype is deprecated in
    all versions of C [-Wstrict-prototypes]"', see
    ccade50
(cherry picked from commit b64540d)
  • Loading branch information
pseiderer authored and slouken committed Nov 27, 2024
1 parent 1bb6275 commit 056a4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/directfb/SDL_DirectFB_render.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ static void DirectFB_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * textur
}
}

static void DirectFB_SetTextureScaleMode(void)
static void DirectFB_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode)
{
}

Expand Down

0 comments on commit 056a4a0

Please sign in to comment.