continued PR#12 into software renderer as well
This commit is contained in:
@@ -17,7 +17,7 @@ void HardwareRenderer::initializeGL()
|
|||||||
void HardwareRenderer::paintGL()
|
void HardwareRenderer::paintGL()
|
||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
painter.setRenderHint(QPainter::SmoothPixmapTransform, video_filter_method);
|
painter.setRenderHint(QPainter::SmoothPixmapTransform, video_filter_method > 0 ? true : false);
|
||||||
painter.drawImage(QRect(0, 0, width(), height()), image, QRect(sx, sy, sw, sh));
|
painter.drawImage(QRect(0, 0, width(), height()), image, QRect(sx, sy, sw, sh));
|
||||||
// "release" image, reducing it's refcount, so renderstack::blit()
|
// "release" image, reducing it's refcount, so renderstack::blit()
|
||||||
// won't have to reallocate
|
// won't have to reallocate
|
||||||
|
@@ -1,5 +1,8 @@
|
|||||||
#include "qt_softwarerenderer.hpp"
|
#include "qt_softwarerenderer.hpp"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
#include <86box/86box.h>
|
||||||
|
}
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
SoftwareRenderer::SoftwareRenderer(QWidget *parent) : QWidget(parent) {}
|
SoftwareRenderer::SoftwareRenderer(QWidget *parent) : QWidget(parent) {}
|
||||||
@@ -8,6 +11,7 @@ void SoftwareRenderer::paintEvent(QPaintEvent *event) {
|
|||||||
(void) event;
|
(void) event;
|
||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
|
painter.setRenderHint(QPainter::SmoothPixmapTransform, video_filter_method > 0 ? true : false);
|
||||||
painter.drawImage(QRect(0, 0, width(), height()), image, QRect(sx, sy, sw, sh));
|
painter.drawImage(QRect(0, 0, width(), height()), image, QRect(sx, sy, sw, sh));
|
||||||
image = QImage();
|
image = QImage();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user