Fix wrong position of drawing area
This commit is contained in:
1 parent
926dda7350
commit
bb146b66a3
1 file changed
+3
-1
@@ -17,7 +17,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
/// Base class for graphic drivers
|
/// Base class for graphic drivers
|
||||||
/// A few notes:
|
/// A few notes:
|
||||||
/// Writes to textures (TTextureType) should only be done in the main thread
|
/// Writes to textures (TTextureType) should only be done in the main thread
|
||||||
/// Writes to the RefCount should only be done in the main thread and guarded by _Textures lock
|
/// Writes to the RefCount of existing textures should only be done in the main thread and guarded by _Textures lock
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TTextureType"></typeparam>
|
/// <typeparam name="TTextureType"></typeparam>
|
||||||
abstract class CDrawBase<TTextureType> where TTextureType : CTextureBase, IDisposable
|
abstract class CDrawBase<TTextureType> where TTextureType : CTextureBase, IDisposable
|
||||||
@@ -156,6 +156,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
{
|
{
|
||||||
if (_W / (float)_H > CSettings.GetRenderAspect())
|
if (_W / (float)_H > CSettings.GetRenderAspect())
|
||||||
{
|
{
|
||||||
|
_Y = 0;
|
||||||
//The windows width is too big
|
//The windows width is too big
|
||||||
int old = _W;
|
int old = _W;
|
||||||
_W = (int)Math.Round(_H * CSettings.GetRenderAspect());
|
_W = (int)Math.Round(_H * CSettings.GetRenderAspect());
|
||||||
@@ -175,6 +176,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
_X = 0;
|
||||||
//The windows height is too big
|
//The windows height is too big
|
||||||
int old = _H;
|
int old = _H;
|
||||||
_H = (int)Math.Round(_W / CSettings.GetRenderAspect());
|
_H = (int)Math.Round(_W / CSettings.GetRenderAspect());
|
||||||
|
|||||||
Reference in new issue
Block a user