diff options
| author | Robert Bieber <robby@bieberphoto.com> | 2010-07-03 22:57:42 +0000 |
|---|---|---|
| committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-03 22:57:42 +0000 |
| commit | 2f68e5be5964a24d68b7cd7816228ce340da3845 (patch) | |
| tree | f3099d16b09d1cd6ac1f7d431978e84413ef4759 /utils/themeeditor/graphics/rbviewport.cpp | |
| parent | 8da13a5d4bd69884242cdb4170d451239aa23d03 (diff) | |
| download | rockbox-2f68e5be5964a24d68b7cd7816228ce340da3845.zip rockbox-2f68e5be5964a24d68b7cd7816228ce340da3845.tar.gz rockbox-2f68e5be5964a24d68b7cd7816228ce340da3845.tar.bz2 rockbox-2f68e5be5964a24d68b7cd7816228ce340da3845.tar.xz | |
Theme Editor: SBS will now render underneath WPS, if both are present in project
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27265 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbviewport.cpp')
| -rw-r--r-- | utils/themeeditor/graphics/rbviewport.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbviewport.cpp b/utils/themeeditor/graphics/rbviewport.cpp index b620e1b..a928253 100644 --- a/utils/themeeditor/graphics/rbviewport.cpp +++ b/utils/themeeditor/graphics/rbviewport.cpp @@ -113,12 +113,22 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info) if(h < 0) h = info.screen()->getHeight() + h - y; + /* Adjusting to screen coordinates if necessary */ + if(screen->parentItem() != 0) + { + x -= screen->parentItem()->pos().x(); + y -= screen->parentItem()->pos().y(); + } + + setPos(x, y); size = QRectF(0, 0, w, h); } debug = info.device()->data("showviewports").toBool(); lineHeight = font->lineHeight(); + if(customUI) + screen->setCustomUI(this); } RBViewport::~RBViewport() |