diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-08-30 16:51:27 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-08-30 18:06:45 -0400 |
| commit | 4af8d9d2487c58953e919769db33b20bc062d6ea (patch) | |
| tree | 753b4b794c64cfbd72f85ec767c38608854157aa /Source/Core/VideoCommon/ImageWrite.cpp | |
| parent | bc14d6966f996c482ea97aa9b424e34091bfc8ec (diff) | |
VideoCommon: Clean up brace placements
Diffstat (limited to 'Source/Core/VideoCommon/ImageWrite.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/ImageWrite.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/ImageWrite.cpp b/Source/Core/VideoCommon/ImageWrite.cpp index db6cbf69c7..2666c62a8a 100644 --- a/Source/Core/VideoCommon/ImageWrite.cpp +++ b/Source/Core/VideoCommon/ImageWrite.cpp @@ -41,14 +41,16 @@ bool TextureToPng(u8* data, int row_stride, const std::string& filename, int wid // Open file for writing (binary mode) File::IOFile fp(filename, "wb"); - if (!fp.IsOpen()) { + if (!fp.IsOpen()) + { PanicAlert("Screenshot failed: Could not open file %s %d\n", filename.c_str(), errno); goto finalise; } // Initialize write structure png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, nullptr, nullptr, nullptr); - if (png_ptr == nullptr) { + if (png_ptr == nullptr) + { PanicAlert("Screenshot failed: Could not allocate write struct\n"); goto finalise; @@ -56,13 +58,15 @@ bool TextureToPng(u8* data, int row_stride, const std::string& filename, int wid // Initialize info structure info_ptr = png_create_info_struct(png_ptr); - if (info_ptr == nullptr) { + if (info_ptr == nullptr) + { PanicAlert("Screenshot failed: Could not allocate info struct\n"); goto finalise; } // Setup Exception handling - if (setjmp(png_jmpbuf(png_ptr))) { + if (setjmp(png_jmpbuf(png_ptr))) + { PanicAlert("Screenshot failed: Error during png creation\n"); goto finalise; } |
