From 4af8d9d2487c58953e919769db33b20bc062d6ea Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 30 Aug 2014 16:51:27 -0400 Subject: VideoCommon: Clean up brace placements --- Source/Core/VideoCommon/ImageWrite.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoCommon/ImageWrite.cpp') 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; } -- cgit v1.2.3