From 31d2b5bceaef2365e6aa3b9f5e073a94c1cbd4c0 Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Tue, 20 Aug 2013 15:12:18 -0400 Subject: [PATCH] Formatting fixes --- IO/src/ImageLoader.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/IO/src/ImageLoader.cpp b/IO/src/ImageLoader.cpp index 1d06c27..b6dc03f 100644 --- a/IO/src/ImageLoader.cpp +++ b/IO/src/ImageLoader.cpp @@ -117,15 +117,14 @@ unsigned int ImageLoader::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) { for(uint32 precLeft = 8; precLeft > 0; precLeft -= min(prec, sad(prec, precLeft))) { if(prec > precLeft) { - const int toShift = prec - precLeft; - ret = ret << precLeft; - ret |= val >> toShift; + const int toShift = prec - precLeft; + ret = ret << precLeft; + ret |= val >> toShift; } else { - ret = ret << prec; - ret |= val; + ret = ret << prec; + ret |= val; } - } return ret; @@ -163,7 +162,8 @@ bool ImageLoader::LoadImage() { #ifndef NDEBUG if(aw != m_Width || ah != m_Height) - fprintf(stderr, "Warning: Image dimension not multiple of four. Space will be filled with black.\n"); + fprintf(stderr, "Warning: Image dimension not multiple of four. " + "Space will be filled with black.\n"); #endif int byteIdx = 0;