From fcf137dbd7f31a22657a9fb5c460ee599bff4853 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 8 Apr 2013 04:39:09 +0000 Subject: style cleanup --- source/blender/freestyle/intern/application/AppCanvas.cpp | 2 +- source/blender/freestyle/intern/application/Controller.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/freestyle/intern/application') diff --git a/source/blender/freestyle/intern/application/AppCanvas.cpp b/source/blender/freestyle/intern/application/AppCanvas.cpp index bca1044e770..2def2f269dd 100644 --- a/source/blender/freestyle/intern/application/AppCanvas.cpp +++ b/source/blender/freestyle/intern/application/AppCanvas.cpp @@ -98,7 +98,7 @@ void AppCanvas::init() static bool firsttime = true; if (firsttime) { _Renderer = new BlenderStrokeRenderer; - if(!StrokeRenderer::loadTextures()) { + if (!StrokeRenderer::loadTextures()) { cerr << "unable to load stroke textures" << endl; return; } diff --git a/source/blender/freestyle/intern/application/Controller.cpp b/source/blender/freestyle/intern/application/Controller.cpp index d5163e2e76f..5b010d5ebc2 100644 --- a/source/blender/freestyle/intern/application/Controller.cpp +++ b/source/blender/freestyle/intern/application/Controller.cpp @@ -650,7 +650,7 @@ void Controller::ComputeSteerableViewMap() // FIXME !! again! img[i] = new GrayImage(_pView->width(), _pView->height()); for (unsigned int y = 0; y < img[i]->height(); ++y) { - for(unsigned int x = 0; x < img[i]->width(); ++x) { + for (unsigned int x = 0; x < img[i]->width(); ++x) { //img[i]->setPixel(x, y, (float)qGray(qimg.pixel(x, y)) / 255.0f); img[i]->setPixel(x, y, (float)qGray(qimg.pixel(x, y))); //float c = qGray(qimg.pixel(x, y)); @@ -664,7 +664,7 @@ void Controller::ComputeSteerableViewMap() #if 0 qimg = QImage(_pView->width(), _pView->height(), 32); for (unsigned int y = 0; y < img[i]->height(); ++y) { - for(unsigned int x = 0; x < img[i]->width(); ++x) { + for (unsigned int x = 0; x < img[i]->width(); ++x) { float v = img[i]->pixel(x, y); qimg.setPixel(x, y, qRgb(v, v, v)); } -- cgit v1.2.3