summaryrefslogtreecommitdiffstats
path: root/gui/fill.cpp
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2013-07-25 22:53:02 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-08-24 14:56:48 +0200
commitfafb0c541bb4b24515c57251a44d87825eec90fb (patch)
tree9cddb55ceef8912c8fafe618c98147ff6df19ef6 /gui/fill.cpp
parentClean-up in partitions.hpp (diff)
downloadandroid_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.gz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.bz2
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.lz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.xz
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.tar.zst
android_bootable_recovery-fafb0c541bb4b24515c57251a44d87825eec90fb.zip
Diffstat (limited to '')
-rw-r--r--gui/fill.cpp30
1 files changed, 15 insertions, 15 deletions
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;
}