fix warnings

This commit is contained in:
Geoffray Levasseur committed 2026-11-07 12:47:19 +01:00
1 parent ab7784dcde
commit 2dcc63875d
17 files changed
+38

No files matched your search

+2
View File
@@ -93,6 +93,8 @@ void Background::paintEvent(QPaintEvent *event)
QWidget::paintEvent(event);
if (m_img && fullScreen) {
QPainter painter(this);
if (!painter.isActive())
return;
const int x = width() - m_img->width() - (width() - 800) * 3 / 8;
const int y = (height() - 600) / 3;
painter.drawImage(x, y, m_img->image());