only need to signal update when we've been blitted

This commit is contained in:
Joakim L. Gilje
2021-11-30 20:52:14 +01:00
parent 82f6f6f5e8
commit 9cdb4f90ca

View File

@@ -67,7 +67,6 @@ void GLESWidget::paintGL()
//painter.fillRect(rect, QColor(0, 0, 0));
painter.drawImage(QRect(0, 0, width(), height()), m_image.convertToFormat(QImage::Format_RGBA8888), QRect(sx, sy, sw, sh));
painter.end();
update();
}
void GLESWidget::mouseReleaseEvent(QMouseEvent *event)
@@ -151,4 +150,5 @@ void GLESWidget::qt_real_blit(int x, int y, int w, int h)
video_screenshot((uint32_t *)imagebits, 0, 0, 2048 + 64);
}
video_blit_complete();
}
update();
}