qt: Remove fullscreen status icons

This commit is contained in:
Alexander Babikov
2024-02-13 21:13:25 +05:00
parent 5acec5dfa4
commit 224daa92d0
12 changed files with 1 additions and 104 deletions

View File

@@ -136,22 +136,6 @@ HardwareRenderer::initializeGL()
m_context->swapBuffers(this);
}
void
HardwareRenderer::paintOverGL()
{
/* Context switching is needed to make use of QPainter to draw status bar icons in fullscreen.
Especially since it seems to be impossible to use QPainter on externally-created OpenGL contexts. */
if (video_fullscreen && status_icons_fullscreen) {
m_context->makeCurrent(nullptr);
makeCurrent();
QPainter painter(this);
drawStatusBarIcons(&painter);
painter.end();
doneCurrent();
m_context->makeCurrent(this);
}
}
void
HardwareRenderer::paintGL()
{