From 5acacae65c11827d979de5ef6d54c08b01eef7c1 Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Mon, 22 Feb 2021 14:27:40 -0500 Subject: [PATCH] SDL2 client: Fix alpha changing of border layer when recentering map. Change the alpha blending mode when copying canvas during recenter. See osdn #41629 --- client/gui-sdl2/canvas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/gui-sdl2/canvas.c b/client/gui-sdl2/canvas.c index efd3ef98e3..0c103a5014 100644 --- a/client/gui-sdl2/canvas.c +++ b/client/gui-sdl2/canvas.c @@ -85,6 +85,7 @@ void canvas_copy(struct canvas *dest, struct canvas *src, SDL_Rect src_rect = {src_x, src_y, width, height}; SDL_Rect dest_rect = {dest_x, dest_y, width, height}; + SDL_SetSurfaceBlendMode(src->surf, SDL_BLENDMODE_NONE); alphablit(src->surf, &src_rect, dest->surf, &dest_rect, 255); } -- 2.26.2