mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 18:23:08 +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:
parent
8b17e2ef62
commit
5b6d922f11
@ -361,7 +361,8 @@ void GMenu2X::initBG() {
|
|||||||
bg = new Surface(s);
|
bg = new Surface(s);
|
||||||
bg->box(0,0,resX,resY,0,0,0);
|
bg->box(0,0,resX,resY,0,0,0);
|
||||||
} else {
|
} else {
|
||||||
bg = new Surface(confStr["wallpaper"],false);
|
// Note: Copy constructor converts to display format.
|
||||||
|
bg = new Surface(Surface(confStr["wallpaper"]));
|
||||||
}
|
}
|
||||||
|
|
||||||
drawTopBar(bg);
|
drawTopBar(bg);
|
||||||
|
@ -301,7 +301,8 @@ void LinkApp::showManual() {
|
|||||||
gmenu2x->setClock(336);
|
gmenu2x->setClock(336);
|
||||||
|
|
||||||
Surface pngman(manual);
|
Surface pngman(manual);
|
||||||
Surface bg(gmenu2x->confStr["wallpaper"],false);
|
// Note: Copy constructor converts to display format.
|
||||||
|
Surface bg(Surface(gmenu2x->confStr["wallpaper"]));
|
||||||
stringstream ss;
|
stringstream ss;
|
||||||
string pageStatus;
|
string pageStatus;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user