Skip to content

Commit

Permalink
ofPixels: fix swapRgb Closes openframeworks#812
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Feb 3, 2012
1 parent 9bbbf9e commit 53dd099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/graphics/ofPixels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void ofPixels_<PixelType>::swapRgb(){
if (channels >= 3){
int sizePixels = width*height*channels;
for (int i=0; i< sizePixels; i+=channels){
std::swap(pixels[0],pixels[2]);
std::swap(pixels[i],pixels[i+2]);
}
}
}
Expand Down

0 comments on commit 53dd099

Please sign in to comment.