forked from len0rd/rockbox
Theme Editor: Fixed some compiler warnings and a segfault. Got some basic text rendering working (only with plaintext elements, no font support yet) as well as Viewport background color support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
691d049177
commit
273b9d6050
9 changed files with 70 additions and 15 deletions
|
@ -32,10 +32,10 @@ RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) :
|
|||
width = info.settings()->value("#screenwidth", "300").toInt();
|
||||
height = info.settings()->value("#screenheight", "200").toInt();
|
||||
|
||||
QString bg = info.settings()->value("background color", "000000");
|
||||
QString bg = info.settings()->value("background color", "FFFFFF");
|
||||
bgColor = stringToColor(bg, Qt::white);
|
||||
|
||||
QString fg = info.settings()->value("foreground color", "FFFFFF");
|
||||
QString fg = info.settings()->value("foreground color", "000000");
|
||||
fgColor = stringToColor(fg, Qt::black);
|
||||
|
||||
settings = info.settings();
|
||||
|
@ -61,6 +61,8 @@ RBScreen::RBScreen(const RBRenderInfo& info, QGraphicsItem *parent) :
|
|||
backdrop = 0;
|
||||
}
|
||||
}
|
||||
|
||||
fonts.insert(0, new RBFont("Nothin'"));
|
||||
}
|
||||
|
||||
RBScreen::~RBScreen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue