If Banshee video overlay is full screen (as would be the case for

full screen 3D), don't bother rendering the desktop behind it.
This commit is contained in:
SarahW 2020-09-28 19:44:33 +01:00
commit 2cf57ab8b2

View file

@ -409,6 +409,14 @@ static void banshee_recalctimings(svga_t *svga)
voodoo->overlay.end_x, voodoo->overlay.end_y,
voodoo->overlay.size_x, voodoo->overlay.size_y,
svga->overlay.pitch);
if (!voodoo->overlay.start_x && !voodoo->overlay.start_y &&
svga->hdisp == voodoo->overlay.size_x && svga->dispend == voodoo->overlay.size_y)
{
/*Overlay is full screen, so don't bother rendering the desktop
behind it*/
svga->render = svga_render_null;
svga->bpp = 0;
}
}
svga->video_res_override = 1;