summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-08-05 07:28:01 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-08-05 07:28:01 +0000
commitbfc20975b068d707ad46a5f02d8561852e41f311 (patch)
treeb78cab1536f0266617201883cd99d33d022ed07a /utils/themeeditor/models/parsetreenode.cpp
parent430eb651a2c39df6e5af99f4cdb14498fde59363 (diff)
downloadrockbox-bfc20975b068d707ad46a5f02d8561852e41f311.tar.gz
rockbox-bfc20975b068d707ad46a5f02d8561852e41f311.tar.bz2
rockbox-bfc20975b068d707ad46a5f02d8561852e41f311.zip
Theme Editor: Fixed image positioning bug, implemented saveGeometry() in RBImage
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27711 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 9f802ae60f..f05bfea954 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -758,6 +758,7 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
image = new RBImage(*(info.screen()->getImage(id)), viewport);
image->setTile(tile);
image->show();
+ image->enableMovement();
}
return true;
@@ -775,7 +776,7 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
tiles = 1;
info.screen()->loadImage(id, new RBImage(filename, tiles, x, y,
- viewport));
+ this, viewport));
return true;
case '\0':
@@ -785,10 +786,11 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
element->params[1].data.text;
x = element->params[2].data.number;
y = element->params[3].data.number;
- image = new RBImage(filename, 1, x, y, viewport);
- info.screen()->loadImage(id, new RBImage(filename, 1, x, y,
- viewport));
- info.screen()->getImage(id)->show();
+ image = new RBImage(filename, 1, x, y, this, viewport);
+ info.screen()->loadImage(id, image);
+ image->show();
+ image->enableMovement();
+
return true;
}