mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
Attempt to fix black screen on NVIDIA (#6307)
This commit is contained in:
@@ -445,10 +445,11 @@ RendererStack::createRenderer(Renderer renderer)
|
||||
current->setFocusPolicy(Qt::NoFocus);
|
||||
current->setFocusProxy(this);
|
||||
current->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
current->setStyleSheet("background-color: black");
|
||||
current->setAttribute(Qt::WA_AlwaysStackOnTop);
|
||||
current->setAttribute(Qt::WA_OpaquePaintEvent):
|
||||
current->setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||
|
||||
this->setStyleSheet("background-color: black");
|
||||
this->setAttribute(Qt::WA_TranslucentBackground);
|
||||
boxLayout->addWidget(current.get());
|
||||
|
||||
rendererWindow->r_monitor_index = m_monitor_index;
|
||||
|
||||
Reference in New Issue
Block a user