From af512c98ccf2897bf2b000a6c47f39af631b93da Mon Sep 17 00:00:00 2001 From: "Joakim L. Gilje" Date: Sun, 5 Dec 2021 20:56:07 +0100 Subject: [PATCH] PR #12 merged manually (Take video_filter_method into account when rendering, by @Cacodemon345) --- src/qt/qt_hardwarerenderer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qt/qt_hardwarerenderer.cpp b/src/qt/qt_hardwarerenderer.cpp index db868ec7e..c18064d07 100644 --- a/src/qt/qt_hardwarerenderer.cpp +++ b/src/qt/qt_hardwarerenderer.cpp @@ -1,5 +1,9 @@ #include "qt_hardwarerenderer.hpp" +extern "C" { +#include <86box/86box.h> +} + void HardwareRenderer::resizeGL(int w, int h) { glViewport(0, 0, w, h); @@ -13,6 +17,7 @@ void HardwareRenderer::initializeGL() void HardwareRenderer::paintGL() { QPainter painter(this); + painter.setRenderHint(QPainter::SmoothPixmapTransform, video_filter_method); painter.drawImage(QRect(0, 0, width(), height()), image, QRect(sx, sy, sw, sh)); // "release" image, reducing it's refcount, so renderstack::blit() // won't have to reallocate