Some colobot-lint fixes

dev-time-step
Piotr Dziwinski 2016-03-19 12:33:54 +13:00
parent 8baccb08a7
commit 720705bd6b
3 changed files with 5 additions and 5 deletions

View File

@ -3394,9 +3394,9 @@ void CEngine::DrawCrashSpheres()
SetState(ENG_RSTATE_OPAQUE_COLOR);
const int LINE_SEGMENTS = 32;
const int LONGITUDE_DIVISIONS = 16;
const int LATITUDE_DIVISIONS = 8;
static const int LINE_SEGMENTS = 32;
static const int LONGITUDE_DIVISIONS = 16;
static const int LATITUDE_DIVISIONS = 8;
VertexCol line[LINE_SEGMENTS];
Color color(0.0f, 0.0f, 1.0f);

View File

@ -628,7 +628,7 @@ PreparedTextureData PrepareTextureData(ImageData* imageData, TexImgFormat format
if (convert)
{
SDL_PixelFormat format;
SDL_PixelFormat format = {};
format.BytesPerPixel = 4;
format.BitsPerPixel = 32;
format.Aloss = format.Bloss = format.Gloss = format.Rloss = 0;

View File

@ -108,7 +108,7 @@ struct PreparedTextureData
bool alpha = false;
};
PreparedTextureData PrepareTextureData(ImageData* data, TexImgFormat format);
PreparedTextureData PrepareTextureData(ImageData* imageData, TexImgFormat format);
class CGLFrameBufferPixels : public CFrameBufferPixels
{