mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 15:35:29 +00:00
More formatting fixes.
This commit is contained in:
parent
9d4f412f65
commit
081866907f
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue