From 6891266eeebd0aa1268dd6ef4c699e3d80e10958 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Tue, 28 Sep 2021 00:59:01 +0200 Subject: [PATCH] SDL(2)_gfxBlitRGBA() is not available in the SDL2_gfx library. --- src/tuxpaint.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 814eca05b..261c978ae 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -6467,7 +6467,9 @@ static void blit_brush(int x, int y, int direction, int rotation, int * w, int * img_cur_brush->format->Amask); if (brush_frame_surf != NULL) { - SDL_gfxBlitRGBA(img_cur_brush, &src, brush_frame_surf, NULL); + /* 2021/09/28 SDL(2)_gfxBlitRGBA() is not available in the SDL2_gfx library, using plain SDL_BlitSurface() instead. Pere + SDL_gfxBlitRGBA(img_cur_brush, &src, brush_frame_surf, NULL); */ + SDL_BlitSurface(img_cur_brush, &src, brush_frame_surf, NULL); rotated_brush = rotozoomSurface(brush_frame_surf, rotation, 1.0, SMOOTHING_ON); SDL_FreeSurface(brush_frame_surf); }