mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-08 07:00:50 +02:00
hiro/qt: QPalette::Background -> QPalette::Window
This commit is contained in:
committed by
Screwtapello
parent
a6db3d6013
commit
a4f0b478ea
4
hiro/qt/window.cpp
Normal file → Executable file
4
hiro/qt/window.cpp
Normal file → Executable file
@@ -101,10 +101,10 @@ auto pWindow::remove(sStatusBar statusBar) -> void {
|
||||
}
|
||||
|
||||
auto pWindow::setBackgroundColor(Color color) -> void {
|
||||
static auto defaultColor = qtContainer->palette().color(QPalette::Background);
|
||||
static auto defaultColor = qtContainer->palette().color(QPalette::Window);
|
||||
|
||||
auto palette = qtContainer->palette();
|
||||
palette.setColor(QPalette::Background, CreateColor(color, defaultColor));
|
||||
palette.setColor(QPalette::Window, CreateColor(color, defaultColor));
|
||||
qtContainer->setPalette(palette);
|
||||
qtContainer->setAutoFillBackground((bool)color);
|
||||
//translucency results are very unpleasant without a compositor; so disable for now
|
||||
|
Reference in New Issue
Block a user