forked from len0rd/rockbox
Theme Editor: Began integrating device configuration panel with renderer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d93164d6c9
commit
c32728c91c
12 changed files with 94 additions and 20 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "rbscreen.h"
|
||||
#include "rbviewport.h"
|
||||
#include "devicestate.h"
|
||||
|
||||
#include <QPainter>
|
||||
#include <QFile>
|
||||
|
@ -29,8 +30,13 @@ RBScreen::RBScreen(const RBRenderInfo& info, 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();
|
||||
|
||||
QString bg = info.settings()->value("background color", "FFFFFF");
|
||||
bgColor = stringToColor(bg, Qt::white);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue