diff options
-rw-r--r-- | engines/sword25/gfx/image/pngloader.cpp | 2 | ||||
-rw-r--r-- | engines/sword25/gfx/opengl/glimage.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword25/gfx/image/pngloader.cpp b/engines/sword25/gfx/image/pngloader.cpp index 0fb1fa509e..59e0f21e84 100644 --- a/engines/sword25/gfx/image/pngloader.cpp +++ b/engines/sword25/gfx/image/pngloader.cpp @@ -320,7 +320,7 @@ bool PNGLoader::ImageProperties(const byte *FileDataPtr, unsigned int FileSize, bool PNGLoader::DoIsCorrectImageFormat(const byte *FileDataPtr, unsigned int FileSize) { if (FileSize > 8) - return png_check_sig((byte *)FileDataPtr, 8) ? true : false; + return png_check_sig(const_cast<byte *>(FileDataPtr), 8) ? true : false; else return false; } diff --git a/engines/sword25/gfx/opengl/glimage.cpp b/engines/sword25/gfx/opengl/glimage.cpp index ec691d8b66..994a61241e 100644 --- a/engines/sword25/gfx/opengl/glimage.cpp +++ b/engines/sword25/gfx/opengl/glimage.cpp @@ -169,7 +169,7 @@ bool GLImage::Blit(int PosX, int PosY, int Flipping, Common::Rect *pPartRect, un Height = m_Height; ScaleY = (float) Height / (float) m_Height; - if (Color & 0xff000000 != 0xff000000) { + if ((Color & 0xff000000) != 0xff000000) { warning("STUB: Image transparent bg color: %x", Color); } int cr = (Color >> 16) & 0xff; |