forked from len0rd/rockbox
Theme Editor: Added Show Viewports option to device configuration panel, implemented simple rendering of info tags from device configuration
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27136 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c32728c91c
commit
5300c7014d
8 changed files with 39 additions and 14 deletions
|
@ -26,17 +26,21 @@
|
|||
#include <QPainter>
|
||||
#include <QFile>
|
||||
|
||||
RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) :
|
||||
QGraphicsItem(parent), backdrop(0), project(project)
|
||||
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
|
||||
QGraphicsItem *parent)
|
||||
:QGraphicsItem(parent), backdrop(0), project(project)
|
||||
{
|
||||
|
||||
/*
|
||||
width = info.settings()->value("#screenwidth", "300").toInt();
|
||||
height = info.settings()->value("#screenheight", "200").toInt();
|
||||
*/
|
||||
|
||||
width = info.device()->data("screenwidth").toInt();
|
||||
height = info.device()->data("screenheight").toInt();
|
||||
if(remote)
|
||||
{
|
||||
width = info.device()->data("remotewidth").toInt();
|
||||
height = info.device()->data("remoteheight").toInt();
|
||||
}
|
||||
else
|
||||
{
|
||||
width = info.device()->data("screenwidth").toInt();
|
||||
height = info.device()->data("screenheight").toInt();
|
||||
}
|
||||
|
||||
QString bg = info.settings()->value("background color", "FFFFFF");
|
||||
bgColor = stringToColor(bg, Qt::white);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue