1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix warnings raised by GCC 8

This commit is contained in:
Rémi Verschelde 2020-01-11 02:05:26 +01:00 committed by Ethan Lee
parent d4ee5dec1a
commit a83e83ca1b
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)