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

+13
View File
@@ -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;
} }
} }
+24
View File
@@ -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)
{ {
+3 -1
View File
@@ -43,7 +43,9 @@ namespace VocaluxeLib
{ {
Crop, Crop,
LetterBox, LetterBox,
Stretch Stretch,
Zoom1,
Zoom2
} }
public enum EAlignment public enum EAlignment
+5
View File
@@ -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);