diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
commit | c32728c91c2579688d3e7ffc4afbea1acf2385e0 (patch) | |
tree | ce1732eadbc0f4160fbe434563f2bf8b3e5b5d1c /utils/themeeditor/graphics/rbscreen.cpp | |
parent | d93164d6c94791d7be6ab71c4a6a2a84f982ba09 (diff) | |
download | rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.gz rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.zip |
Theme Editor: Began integrating device configuration panel with renderer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r-- | utils/themeeditor/graphics/rbscreen.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp index d6a9aa6240..da6d20bbe8 100644 --- a/utils/themeeditor/graphics/rbscreen.cpp +++ b/utils/themeeditor/graphics/rbscreen.cpp | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "rbscreen.h" | 22 | #include "rbscreen.h" |
23 | #include "rbviewport.h" | 23 | #include "rbviewport.h" |
24 | #include "devicestate.h" | ||
24 | 25 | ||
25 | #include <QPainter> | 26 | #include <QPainter> |
26 | #include <QFile> | 27 | #include <QFile> |
@@ -29,8 +30,13 @@ RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) : | |||
29 | QGraphicsItem(parent), backdrop(0), project(project) | 30 | QGraphicsItem(parent), backdrop(0), project(project) |
30 | { | 31 | { |
31 | 32 | ||
33 | /* | ||
32 | width = info.settings()->value("#screenwidth", "300").toInt(); | 34 | width = info.settings()->value("#screenwidth", "300").toInt(); |
33 | height = info.settings()->value("#screenheight", "200").toInt(); | 35 | height = info.settings()->value("#screenheight", "200").toInt(); |
36 | */ | ||
37 | |||
38 | width = info.device()->data("screenwidth").toInt(); | ||
39 | height = info.device()->data("screenheight").toInt(); | ||
34 | 40 | ||
35 | QString bg = info.settings()->value("background color", "FFFFFF"); | 41 | QString bg = info.settings()->value("background color", "FFFFFF"); |
36 | bgColor = stringToColor(bg, Qt::white); | 42 | bgColor = stringToColor(bg, Qt::white); |