mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-01-27 21:11:06 +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 52c89d60055705e34afaafa7c2f1ab2840c2364e.
This commit is contained in:
parent
8b17e2ef62
commit
5b6d922f11
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user