mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
11
games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch
Normal file
11
games-puzzle/xwelltris/files/xwelltris-1.0.1-gcc-11.patch
Normal 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];
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user