mirror of https://github.com/stella-emu/stella.git
Account for HiDPI scaling when validating QIS blitter.
This commit is contained in:
parent
7c5d302f4f
commit
0c44764693
|
@ -281,8 +281,12 @@ void FBSurfaceSDL2::applyAttributes()
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
void FBSurfaceSDL2::setScalingInterpolation(ScalingInterpolation interpolation)
|
void FBSurfaceSDL2::setScalingInterpolation(ScalingInterpolation interpolation)
|
||||||
{
|
{
|
||||||
if (interpolation == ScalingInterpolation::sharp
|
if (interpolation == ScalingInterpolation::sharp &&
|
||||||
&& mySrcGUIR.h() >= myDstGUIR.h())
|
(
|
||||||
|
static_cast<int>(mySrcGUIR.h()) >= myBackend.scaleY(myDstGUIR.h()) ||
|
||||||
|
static_cast<int>(mySrcGUIR.w()) >= myBackend.scaleX(myDstGUIR.w())
|
||||||
|
)
|
||||||
|
)
|
||||||
interpolation = ScalingInterpolation::blur;
|
interpolation = ScalingInterpolation::blur;
|
||||||
|
|
||||||
if (interpolation == myInterpolationMode) return;
|
if (interpolation == myInterpolationMode) return;
|
||||||
|
|
Loading…
Reference in New Issue