mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 03:05:39 +00:00
More formatting fixes.
This commit is contained in:
parent
9d4f412f65
commit
081866907f
|
@ -138,9 +138,7 @@ bool ImageFile::Write() {
|
|||
|
||||
#ifdef PNG_FOUND
|
||||
case eFileFormat_PNG:
|
||||
{
|
||||
writer = new ImageWriterPNG(*m_Image);
|
||||
}
|
||||
break;
|
||||
#endif // PNG_FOUND
|
||||
|
||||
|
@ -170,9 +168,7 @@ Image *ImageFile::LoadImage(const unsigned char *rawImageData) const {
|
|||
|
||||
#ifdef PNG_FOUND
|
||||
case eFileFormat_PNG:
|
||||
{
|
||||
loader = new ImageLoaderPNG(rawImageData);
|
||||
}
|
||||
break;
|
||||
#endif // PNG_FOUND
|
||||
|
||||
|
@ -259,7 +255,9 @@ unsigned char *ImageFile::ReadFileData(const CHAR *filename) {
|
|||
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...
|
||||
FileStream fstr (filename, eFileMode_WriteBinary);
|
||||
|
|
Loading…
Reference in a new issue