From fafb0c541bb4b24515c57251a44d87825eec90fb Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Thu, 25 Jul 2013 22:53:02 +0200 Subject: Unify indentation and little clean-up in TWRP files Signed-off-by: Vojtech Bocek --- gui/fill.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'gui/fill.cpp') diff --git a/gui/fill.cpp b/gui/fill.cpp index 901eee140..ad1f4e075 100644 --- a/gui/fill.cpp +++ b/gui/fill.cpp @@ -27,31 +27,31 @@ extern "C" { GUIFill::GUIFill(xml_node<>* node) { - xml_attribute<>* attr; - xml_node<>* child; + xml_attribute<>* attr; + xml_node<>* child; - if (!node) - return; + if (!node) + return; - attr = node->first_attribute("color"); - if (!attr) { + attr = node->first_attribute("color"); + if (!attr) { LOGERR("No color specified for fill\n"); - return; + return; } - std::string color = attr->value(); - ConvertStrToColor(color, &mColor); + std::string color = attr->value(); + ConvertStrToColor(color, &mColor); - // Load the placement - LoadPlacement(node->first_node("placement"), &mRenderX, &mRenderY, &mRenderW, &mRenderH); + // Load the placement + LoadPlacement(node->first_node("placement"), &mRenderX, &mRenderY, &mRenderW, &mRenderH); - return; + return; } int GUIFill::Render(void) { - gr_color(mColor.red, mColor.green, mColor.blue, mColor.alpha); - gr_fill(mRenderX, mRenderY, mRenderW, mRenderH); - return 0; + gr_color(mColor.red, mColor.green, mColor.blue, mColor.alpha); + gr_fill(mRenderX, mRenderY, mRenderW, mRenderH); + return 0; } -- cgit v1.2.3