diff options
author | Vicent Marti | 2008-06-13 17:47:56 +0000 |
---|---|---|
committer | Vicent Marti | 2008-06-13 17:47:56 +0000 |
commit | 04b36a12e17252aa3f27392b334b053406847d8f (patch) | |
tree | c65fc8d7a1dea0d49ed8dd7ce30a6f61f4bfeff6 /graphics/VectorRenderer.cpp | |
parent | 5d92e2710a85f998f1f7bfbf4705880921d904e7 (diff) | |
download | scummvm-rg350-04b36a12e17252aa3f27392b334b053406847d8f.tar.gz scummvm-rg350-04b36a12e17252aa3f27392b334b053406847d8f.tar.bz2 scummvm-rg350-04b36a12e17252aa3f27392b334b053406847d8f.zip |
Formating conventions.
Function parameter fixes.
Parser fixes.
svn-id: r32696
Diffstat (limited to 'graphics/VectorRenderer.cpp')
-rw-r--r-- | graphics/VectorRenderer.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp index 2c50ddd0ec..abfd53edcd 100644 --- a/graphics/VectorRenderer.cpp +++ b/graphics/VectorRenderer.cpp @@ -51,39 +51,39 @@ VectorRenderer *createRenderer(int mode) { /******************************************************************** * DRAWSTEP handling functions ********************************************************************/ -void VectorRenderer::drawStep(Common::Rect area, DrawStep *step) { +void VectorRenderer::drawStep(const Common::Rect &area, const DrawStep &step) { - if (step->flags & DrawStep::kStepCallbackOnly) { - (this->*(step->drawing_call))(&area, step); + if (step.flags & DrawStep::kStepCallbackOnly) { + (this->*(step.drawing_call))(area, step); return; } - if (step->flags & DrawStep::kStepSetBG) - setBgColor(step->color2.r, step->color2.g, step->color2.b); + if (step.flags & DrawStep::kStepSetBG) + setBgColor(step.color2.r, step.color2.g, step.color2.b); - if (step->flags & DrawStep::kStepSetFG) - setFgColor(step->color1.r, step->color1.g, step->color1.b); + if (step.flags & DrawStep::kStepSetFG) + setFgColor(step.color1.r, step.color1.g, step.color1.b); - if (step->flags & DrawStep::kStepSetGradient) - setGradientColors(step->color1.r, step->color1.g, step->color1.b, - step->color2.r, step->color2.g, step->color2.b); + if (step.flags & DrawStep::kStepSetGradient) + setGradientColors(step.color1.r, step.color1.g, step.color1.b, + step.color2.r, step.color2.g, step.color2.b); - if (step->flags & DrawStep::kStepSetShadow) - shadowEnable(step->shadow); + if (step.flags & DrawStep::kStepSetShadow) + shadowEnable(step.shadow); - if (step->flags & DrawStep::kStepSetGradientFactor) - setGradientFactor(step->factor); + if (step.flags & DrawStep::kStepSetGradientFactor) + setGradientFactor(step.factor); - if (step->flags & DrawStep::kStepSetStroke) - setStrokeWidth(step->stroke); + if (step.flags & DrawStep::kStepSetStroke) + setStrokeWidth(step.stroke); - if (step->flags & DrawStep::kStepSetFillMode) - setFillMode((FillMode)step->fill_mode); + if (step.flags & DrawStep::kStepSetFillMode) + setFillMode((FillMode)step.fill_mode); - if (step->flags & DrawStep::kStepSettingsOnly) + if (step.flags & DrawStep::kStepSettingsOnly) return; - (this->*(step->drawing_call))(&area, step); + (this->*(step.drawing_call))(area, step); } /******************************************************************** |