Hooked up bi-linear filter for new QPainter video driver.

This commit is contained in:
harry 2023-05-10 00:25:07 -04:00
parent 13b52f5c8e
commit 3208c01b38
1 changed files with 1 additions and 9 deletions

View File

@ -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);