From 3208c01b38f6e3c14e68bab50e8aa99806dc2b63 Mon Sep 17 00:00:00 2001 From: harry Date: Wed, 10 May 2023 00:25:07 -0400 Subject: [PATCH] Hooked up bi-linear filter for new QPainter video driver. --- src/drivers/Qt/ConsoleViewerQWidget.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/drivers/Qt/ConsoleViewerQWidget.cpp b/src/drivers/Qt/ConsoleViewerQWidget.cpp index 78313a39..d0d2f55e 100644 --- a/src/drivers/Qt/ConsoleViewerQWidget.cpp +++ b/src/drivers/Qt/ConsoleViewerQWidget.cpp @@ -233,15 +233,6 @@ void ConsoleViewQWidget_t::transfer2LocalBuffer(void) int ConsoleViewQWidget_t::init(void) { - if ( linearFilter ) - { - //SDL_SetHint( SDL_HINT_RENDER_SCALE_QUALITY, "1" ); - } - else - { - //SDL_SetHint( SDL_HINT_RENDER_SCALE_QUALITY, "0" ); - } - return 0; } @@ -493,6 +484,7 @@ void ConsoleViewQWidget_t::paintEvent(QPaintEvent *event) { painter.fillRect( 0, 0, view_width, view_height, Qt::black ); } + painter.setRenderHint( QPainter::SmoothPixmapTransform, linearFilter ); int rowPitch = nesWidth * sizeof(uint32_t);