add screen filtering

This commit is contained in:
Arisotura 2020-05-21 18:49:34 +02:00
parent 8f9369beeb
commit 5dcf57e86d
1 changed files with 2 additions and 0 deletions

View File

@ -628,6 +628,8 @@ void MainWindowPanel::paintEvent(QPaintEvent* event)
memcpy(screen[0]->scanLine(0), GPU::Framebuffer[frontbuf][0], 256*192*4); memcpy(screen[0]->scanLine(0), GPU::Framebuffer[frontbuf][0], 256*192*4);
memcpy(screen[1]->scanLine(0), GPU::Framebuffer[frontbuf][1], 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); QRect screenrc = QRect(0, 0, 256, 192);
painter.setTransform(screenTrans[0]); painter.setTransform(screenTrans[0]);