From bb146b66a34cf2ce7a229672abb0cdc7a0bcc85e Mon Sep 17 00:00:00 2001 From: Flamefire Date: Wed, 24 Sep 2014 19:05:08 +0200 Subject: [PATCH] Fix wrong position of drawing area --- Vocaluxe/Lib/Draw/CDrawBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Lib/Draw/CDrawBase.cs b/Vocaluxe/Lib/Draw/CDrawBase.cs index 8cf32f54..78bad768 100644 --- a/Vocaluxe/Lib/Draw/CDrawBase.cs +++ b/Vocaluxe/Lib/Draw/CDrawBase.cs @@ -17,7 +17,7 @@ namespace Vocaluxe.Lib.Draw /// Base class for graphic drivers /// A few notes: /// 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 /// /// abstract class CDrawBase where TTextureType : CTextureBase, IDisposable @@ -156,6 +156,7 @@ namespace Vocaluxe.Lib.Draw { if (_W / (float)_H > CSettings.GetRenderAspect()) { + _Y = 0; //The windows width is too big int old = _W; _W = (int)Math.Round(_H * CSettings.GetRenderAspect()); @@ -175,6 +176,7 @@ namespace Vocaluxe.Lib.Draw } else { + _X = 0; //The windows height is too big int old = _H; _H = (int)Math.Round(_W / CSettings.GetRenderAspect());