More formatting fixes.

This commit is contained in:
Pavel Krajcevski 2013-08-20 15:27:36 -04:00
parent 9d4f412f65
commit 081866907f

View file

@ -138,9 +138,7 @@ bool ImageFile::Write() {
#ifdef PNG_FOUND #ifdef PNG_FOUND
case eFileFormat_PNG: case eFileFormat_PNG:
{
writer = new ImageWriterPNG(*m_Image); writer = new ImageWriterPNG(*m_Image);
}
break; break;
#endif // PNG_FOUND #endif // PNG_FOUND
@ -170,9 +168,7 @@ Image *ImageFile::LoadImage(const unsigned char *rawImageData) const {
#ifdef PNG_FOUND #ifdef PNG_FOUND
case eFileFormat_PNG: case eFileFormat_PNG:
{
loader = new ImageLoaderPNG(rawImageData); loader = new ImageLoaderPNG(rawImageData);
}
break; break;
#endif // PNG_FOUND #endif // PNG_FOUND
@ -259,7 +255,9 @@ unsigned char *ImageFile::ReadFileData(const CHAR *filename) {
return rawData; return rawData;
} }
bool ImageFile::WriteImageDataToFile(const uint8 *data, const uint32 dataSz, const CHAR *filename) { bool ImageFile::WriteImageDataToFile(const uint8 *data,
const uint32 dataSz,
const CHAR *filename) {
// Open a file stream and write out the data... // Open a file stream and write out the data...
FileStream fstr (filename, eFileMode_WriteBinary); FileStream fstr (filename, eFileMode_WriteBinary);