Fix warnings raised by GCC 8

This commit is contained in:
Rémi Verschelde 2020-01-11 02:05:26 +01:00
parent 6bb245b8a4
commit 90f1819d8d
3 changed files with 8 additions and 4 deletions

View File

@ -108,7 +108,7 @@ bool binaryBlob::unPackBinary(const char* name)
}
PHYSFS_close(handle);
printf("The complete reloaded file size: %li\n", size);
printf("The complete reloaded file size: %lli\n", size);
for (int i = 0; i < 128; i += 1)
{

View File

@ -3078,8 +3078,12 @@ void Graphics::bigrprint(int x, int y, std::string& t, int r, int g, int b, bool
x -= (len(t));
if (r < -1) r = -1; if (g < 0) g = 0; if (b < 0) b = 0;
if (r > 255) r = 255; if (g > 255) g = 255; if (b > 255) b = 255;
if (r < -1) r = -1;
if (g < 0) g = 0;
if (b < 0) b = 0;
if (r > 255) r = 255;
if (g > 255) g = 255;
if (b > 255) b = 255;
ct.colour = getRGB(r, g, b);
if (cen)

View File

@ -200,7 +200,7 @@ SDL_Surface * ScaleSurfaceSlow( SDL_Surface *_surface, int Width, int Height)
// DrawPixel(_ret, static_cast<Sint32>(_stretch_factor_x * x) + o_x,
//static_cast<Sint32>(_stretch_factor_y * y) + o_y, ReadPixel(_surface, x, y));
return _ret;
return _ret;
}
SDL_Surface * FlipSurfaceHorizontal(SDL_Surface* _src)