summaryrefslogtreecommitdiffstats
path: root/gui/mousecursor.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-14 20:23:16 +0100
committerthat <github@that.at>2015-02-15 20:36:40 +0100
commitf6ed8fc1f51e368bb76905d9f1d2d3735e70a644 (patch)
treeba66418d418869274d259ce35cca8d4021d8ce4e /gui/mousecursor.cpp
parentRetain and display previous selection for image flashing (diff)
downloadandroid_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar.gz
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar.bz2
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar.lz
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar.xz
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.tar.zst
android_bootable_recovery-f6ed8fc1f51e368bb76905d9f1d2d3735e70a644.zip
Diffstat (limited to 'gui/mousecursor.cpp')
-rw-r--r--gui/mousecursor.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/gui/mousecursor.cpp b/gui/mousecursor.cpp
index 1c22356f9..625588629 100644
--- a/gui/mousecursor.cpp
+++ b/gui/mousecursor.cpp
@@ -58,19 +58,12 @@ void MouseCursor::LoadData(xml_node<>* node)
child = node->first_node("background");
if(child)
{
- attr = child->first_attribute("color");
- if(attr)
- ConvertStrToColor(attr->value(), &m_color);
-
- attr = child->first_attribute("resource");
- if(attr)
+ m_color = LoadAttrColor(child, "color", m_color);
+ m_image = LoadAttrImage(child, "resource");
+ if(m_image)
{
- m_image = PageManager::FindResource(attr->value());
- if(m_image)
- {
- mRenderW = gr_get_width(m_image->GetResource());
- mRenderH = gr_get_height(m_image->GetResource());
- }
+ mRenderW = m_image->GetWidth();
+ mRenderH = m_image->GetHeight();
}
}