Merge remote-tracking branch 'winqt/qt' into winqt5

This commit is contained in:
Cacodemon345
2021-12-17 12:17:56 +06:00
17 changed files with 162 additions and 217 deletions

View File

@@ -15,6 +15,8 @@ RendererCommon::RendererCommon() = default;
void RendererCommon::onPaint(QPaintDevice* device) {
QPainter painter(device);
painter.setRenderHint(QPainter::SmoothPixmapTransform, video_filter_method > 0 ? true : false);
painter.fillRect(0, 0, device->width(), device->height(), QColorConstants::Black);
painter.setCompositionMode(QPainter::CompositionMode_Plus);
painter.drawImage(destination, image, source);
// "release" image, reducing it's refcount, so renderstack::blit()
// won't have to reallocate