games-puzzle/xwelltris: tweak for gcc-11

Reported-by: Agostino Sarubbo
Closes: https://bugs.gentoo.org/739318
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2021-05-02 21:19:30 +01:00
parent 166cafb318
commit d4639706ab
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- a/src/sdl/sdlwelldrawing.cxx
+++ b/src/sdl/sdlwelldrawing.cxx
@@ -72,7 +72,7 @@ void SDLWellDrawingEngine::init(int inum_fields, int idx, int idy,
fields[i]=SDL_DisplayFormat(surface);
SDL_FreeSurface(surface);
- if(fields[i]>0)
+ if(fields[i])
clear_field(i);
}
bg_color=colors[BackColor];

View File

@@ -25,6 +25,7 @@ RDEPEND="
PATCHES=(
# Look in ${EPREFIX}/var/lib/xwelltris for score file
"${FILESDIR}"/${PN}-1.0.1-scorefile-dir.patch
"${FILESDIR}"/${PN}-1.0.1-gcc-11.patch
)
src_prepare() {