Theme Editor: Fixed image display relative to viewport
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27084 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d3027053f9
commit
f4fd16cd64
2 changed files with 4 additions and 2 deletions
|
@ -44,7 +44,8 @@ RBImage::RBImage(QString file, int tiles, int x, int y, QGraphicsItem* parent)
|
|||
|
||||
}
|
||||
|
||||
size = QRectF(x, y, image->width(), image->height() / tiles);
|
||||
size = QRectF(0, 0, image->width(), image->height() / tiles);
|
||||
setPos(x, y);
|
||||
|
||||
}
|
||||
else
|
||||
|
|
|
@ -100,7 +100,8 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info)
|
|||
else
|
||||
h = node->params[param].data.numeric;
|
||||
|
||||
size = QRectF(x, y, w, h);
|
||||
setPos(x, y);
|
||||
size = QRectF(0, 0, w, h);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue