aboutsummaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-05-21 18:49:34 +0200
committerArisotura <thetotalworm@gmail.com>2020-05-21 18:49:34 +0200
commit5dcf57e86dc8e768d33406fb446f25bf186eef4d (patch)
treeb5ef89347f67b1ed47fadc5ee8bec8ada29ec6f8 /src/frontend
parent8f9369beebf60f3b10d75f50507b194f2ccdaceb (diff)
add screen filtering
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/qt_sdl/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 0d10378..36a3b8e 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -628,6 +628,8 @@ void MainWindowPanel::paintEvent(QPaintEvent* event)
memcpy(screen[0]->scanLine(0), GPU::Framebuffer[frontbuf][0], 256*192*4);
memcpy(screen[1]->scanLine(0), GPU::Framebuffer[frontbuf][1], 256*192*4);
+ painter.setRenderHint(QPainter::SmoothPixmapTransform, Config::ScreenFilter!=0);
+
QRect screenrc = QRect(0, 0, 256, 192);
painter.setTransform(screenTrans[0]);