Skip to content

Commit

Permalink
Hooked up bi-linear filter for new QPainter video driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
thor2016 committed May 10, 2023
1 parent 13b52f5 commit 3208c01
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/drivers/Qt/ConsoleViewerQWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 3208c01

Please sign in to comment.