forked from len0rd/rockbox
Theme Editor: Co Used a more efficient/less error-prone system for rendering SBS documents underneath WPS documents
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27765 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
77b682571f
commit
d1a392a0e9
10 changed files with 71 additions and 45 deletions
|
@ -56,6 +56,16 @@ RBViewport::RBViewport(skin_element* node, const RBRenderInfo& info,
|
|||
customUI = false;
|
||||
font = screen->getFont(1);
|
||||
|
||||
screen->setDefault(this);
|
||||
|
||||
if(screen->getCustomUI())
|
||||
{
|
||||
RBViewport* cui = screen->getCustomUI();
|
||||
size = cui->boundingRect();
|
||||
setPos(cui->pos());
|
||||
|
||||
}
|
||||
|
||||
/* Making sure the default viewport can't be graphically manipulated */
|
||||
setFlag(ItemIsSelectable, false);
|
||||
setFlag(ItemIsMovable, false);
|
||||
|
@ -299,6 +309,12 @@ void RBViewport::showPlaylist(const RBRenderInfo &info, int start,
|
|||
}
|
||||
}
|
||||
|
||||
void RBViewport::makeFullScreen()
|
||||
{
|
||||
size = screen->boundingRect();
|
||||
setPos(screen->pos());
|
||||
}
|
||||
|
||||
void RBViewport::saveGeometry()
|
||||
{
|
||||
QRectF bounds = boundingRect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue