Ignore vscalefactor if < 1

fix black screen on some intel platforms
This commit is contained in:
Flyinghead 2019-05-08 21:33:49 +02:00
parent e7c44df627
commit 3cd9736fca
2 changed files with 4 additions and 4 deletions

View File

@ -656,7 +656,7 @@ static bool RenderFrame()
{
scale_x=fb_scale_x;
scale_y=fb_scale_y;
if (SCALER_CTL.interlace == 0)
if (SCALER_CTL.interlace == 0 && SCALER_CTL.vscalefactor >= 0x400)
scale_y *= SCALER_CTL.vscalefactor / 0x400;
//work out scaling parameters !
@ -870,7 +870,7 @@ static bool RenderFrame()
float min_y = pvrrc.fb_Y_CLIP.min / scale_y;
if (!is_rtt)
{
if (SCALER_CTL.interlace)
if (SCALER_CTL.interlace && SCALER_CTL.vscalefactor >= 0x400)
{
// Clipping is done after scaling/filtering so account for that if enabled
height *= SCALER_CTL.vscalefactor / 0x400;

View File

@ -1651,7 +1651,7 @@ bool RenderFrame()
{
scale_x=fb_scale_x;
scale_y=fb_scale_y;
if (SCALER_CTL.interlace == 0)
if (SCALER_CTL.interlace == 0 && SCALER_CTL.vscalefactor >= 0x400)
scale_y *= SCALER_CTL.vscalefactor / 0x400;
//work out scaling parameters !
@ -1902,7 +1902,7 @@ bool RenderFrame()
float min_y = pvrrc.fb_Y_CLIP.min / scale_y;
if (!is_rtt)
{
if (SCALER_CTL.interlace)
if (SCALER_CTL.interlace && SCALER_CTL.vscalefactor >= 0x400)
{
// Clipping is done after scaling/filtering so account for that if enabled
height *= SCALER_CTL.vscalefactor / 0x400;