Added to zoom-levels to VideoAspect. Toogle on ScreenSing with 'V', saved to song-text if saving is enabled in config.xml.

This commit is contained in:
Florian Küpper committed 2014-09-19 16:15:53 +02:00
1 parent 6ea49eeab0
commit e915e72ce6
4 files changed
+45 -1

No files matched your search

+24
View File
@@ -152,6 +152,30 @@ namespace VocaluxeLib
scaledWidth = boundsH * rectAspect;
}
break;
case EAspect.Zoom1:
if (boundsAspect >= rectAspect)
{
scaledWidth = boundsW * 1.33f;
scaledHeight = boundsW * 1.33f / rectAspect;
}
else
{
scaledHeight = boundsH / 1.33f;
scaledWidth = boundsH / 1.33f * rectAspect;
}
break;
case EAspect.Zoom2:
if (boundsAspect >= rectAspect)
{
scaledWidth = boundsW * 1.17f;
scaledHeight = boundsW * 1.17f / rectAspect;
}
else
{
scaledHeight = boundsH / 1.17f;
scaledWidth = boundsH / 1.17f * rectAspect;
}
break;
case EAspect.LetterBox:
if (boundsAspect <= rectAspect)
{