Add an option to strech the rendered area instead of displaying black bars (closes #33)
This commit is contained in:
1 parent
140bcfee8f
commit
a4f39e6145
3 files changed
+10
-2
No files matched your search
@@ -89,6 +89,7 @@ namespace Vocaluxe.Base
|
||||
[DefaultValue(60f)] public float MaxFPS;
|
||||
[DefaultValue(EOffOn.TR_CONFIG_ON)] public EOffOn VSync;
|
||||
[DefaultValue(EOffOn.TR_CONFIG_ON)] public EOffOn FullScreen;
|
||||
[DefaultValue(EOffOn.TR_CONFIG_OFF)] public EOffOn Strech;
|
||||
[DefaultValue(0.4f), XmlRanged(0, 3)] public float FadeTime;
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,10 @@ namespace Vocaluxe.Lib.Draw
|
||||
_H = _Form.ClientSize.Height;
|
||||
_W = _Form.ClientSize.Width;
|
||||
|
||||
_AdjustAspect(false);
|
||||
if (CConfig.Config.Graphics.Strech != EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_AdjustAspect(false);
|
||||
}
|
||||
|
||||
//Apply the new sizes to the PresentParameters
|
||||
_PresentParameters.BackBufferWidth = _Form.ClientSize.Width;
|
||||
|
||||
@@ -219,7 +219,11 @@ namespace Vocaluxe.Lib.Draw
|
||||
_W = _Control.Width;
|
||||
_CurrentAlignment = CConfig.Config.Graphics.ScreenAlignment;
|
||||
|
||||
_AdjustAspect(true);
|
||||
if (CConfig.Config.Graphics.Strech != EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_AdjustAspect(true);
|
||||
}
|
||||
|
||||
_AdjustNewBorders();
|
||||
GL.Viewport(_X, _Y, _W, _H);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user