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:
1 parent
6ea49eeab0
commit
e915e72ce6
4 files changed
+45
-1
No files matched your search
@@ -271,6 +271,19 @@ namespace Vocaluxe.Screens
|
|||||||
CSound.SetGlobalVolume(CConfig.GameMusicVolume);
|
CSound.SetGlobalVolume(CConfig.GameMusicVolume);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Keys.V:
|
||||||
|
if (_VideoAspect == EAspect.Zoom2)
|
||||||
|
_VideoAspect = 0;
|
||||||
|
else
|
||||||
|
_VideoAspect++;
|
||||||
|
|
||||||
|
CSong song = CGame.GetSong();
|
||||||
|
song.VideoAspect = _VideoAspect;
|
||||||
|
|
||||||
|
if (CConfig.SaveModifiedSongs == EOffOn.TR_CONFIG_ON)
|
||||||
|
song.Save();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,30 @@ namespace VocaluxeLib
|
|||||||
scaledWidth = boundsH * rectAspect;
|
scaledWidth = boundsH * rectAspect;
|
||||||
}
|
}
|
||||||
break;
|
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:
|
case EAspect.LetterBox:
|
||||||
if (boundsAspect <= rectAspect)
|
if (boundsAspect <= rectAspect)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,7 +43,9 @@ namespace VocaluxeLib
|
|||||||
{
|
{
|
||||||
Crop,
|
Crop,
|
||||||
LetterBox,
|
LetterBox,
|
||||||
Stretch
|
Stretch,
|
||||||
|
Zoom1,
|
||||||
|
Zoom2
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum EAlignment
|
public enum EAlignment
|
||||||
|
|||||||
@@ -287,6 +287,11 @@ namespace VocaluxeLib.Songs
|
|||||||
return loader.ReadNotes();
|
return loader.ReadNotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool Save()
|
||||||
|
{
|
||||||
|
return Save(Path.Combine(Folder, FileName));
|
||||||
|
}
|
||||||
|
|
||||||
public bool Save(string filePath)
|
public bool Save(string filePath)
|
||||||
{
|
{
|
||||||
var writer = new CSongWriter(this);
|
var writer = new CSongWriter(this);
|
||||||
|
|||||||
Reference in new issue
Block a user