| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/games/violetland/files/ |
Upload File : |
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)