1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-22 13:05:20 +02:00

Fixed bug: wallpaper does not use alpha channel.

The unnecessary alpha channel might harm performance but is not a big deal.
However, the fact that the alpha flag (bool) is somehow automatically
converted by C++ into a skin name (string) causes the entire screen to
stay black.

The black screen was fixed by removing the alpha flag.
For optimum blitting performance, the wallpaper surface is then converted
to the pixel format of the frame buffer.

Bug was introduced in 52c89d6005.
This commit is contained in:
Maarten ter Huurne 2011-06-02 07:13:59 +02:00
parent 8b17e2ef62
commit 5b6d922f11
2 changed files with 4 additions and 2 deletions

View File

@ -361,7 +361,8 @@ void GMenu2X::initBG() {
bg = new Surface(s);
bg->box(0,0,resX,resY,0,0,0);
} else {
bg = new Surface(confStr["wallpaper"],false);
// Note: Copy constructor converts to display format.
bg = new Surface(Surface(confStr["wallpaper"]));
}
drawTopBar(bg);

View File

@ -301,7 +301,8 @@ void LinkApp::showManual() {
gmenu2x->setClock(336);
Surface pngman(manual);
Surface bg(gmenu2x->confStr["wallpaper"],false);
// Note: Copy constructor converts to display format.
Surface bg(Surface(gmenu2x->confStr["wallpaper"]));
stringstream ss;
string pageStatus;