diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/violetland/Makefile | 2 | ||||
-rw-r--r-- | games/violetland/files/patch-src_system_utility_ImageUtility.cpp | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/games/violetland/Makefile b/games/violetland/Makefile index 33219ff08331..bbfb1ddd7a74 100644 --- a/games/violetland/Makefile +++ b/games/violetland/Makefile @@ -20,7 +20,7 @@ GH_TUPLE= jarro2783:CMake-Gettext:6ee6405:cmakegettext/lib/CMake-Gettext USES= cmake compiler:c++11-lang gettext gl sdl USE_SDL= sdl mixer image ttf USE_GL= gl glu -USE_CXXSTD= c++98 +USE_CXXSTD= c++11 CMAKE_ARGS= -DDATA_INSTALL_DIR="${DATADIR}" \ -DLOCALE_INSTALL_DIR="${PREFIX}/share/locale" diff --git a/games/violetland/files/patch-src_system_utility_ImageUtility.cpp b/games/violetland/files/patch-src_system_utility_ImageUtility.cpp new file mode 100644 index 000000000000..8731332c1450 --- /dev/null +++ b/games/violetland/files/patch-src_system_utility_ImageUtility.cpp @@ -0,0 +1,15 @@ +Fix compatibility with C++17, which is required to build with boost 1.76 + +--- src/system/utility/ImageUtility.cpp.orig 2016-01-04 20:15:21 UTC ++++ src/system/utility/ImageUtility.cpp +@@ -23,8 +23,8 @@ SDL_Surface *ImageUtility::loadImage(boost::filesystem + SDL_Surface *ImageUtility::createImage(TTF_Font *font, char fgR, char fgG,
+ char fgB, char fgA, char bgR, char bgG, char bgB, char bgA,
+ std::string text, FontRenderingFlag quality) {
+- SDL_Color tmpfontcolor = { fgR, fgG, fgB, fgA };
+- SDL_Color tmpfontbgcolor = { bgR, bgG, bgB, bgA };
++ SDL_Color tmpfontcolor = { (Uint8)fgR, (Uint8)fgG, (Uint8)fgB, (Uint8)fgA };
++ SDL_Color tmpfontbgcolor = { (Uint8)bgR, (Uint8)bgG, (Uint8)bgB, (Uint8)bgA };
+ SDL_Surface *resulting_text = NULL;
+
+ if (quality == solid)
|