From fa975a99601304ae6ee13e3af61a77634e948466 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Wed, 28 Mar 2012 14:27:57 +0200 Subject: [PATCH] Fixed resizing --- Vocaluxe/Lib/Draw/CDirect3D.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Vocaluxe/Lib/Draw/CDirect3D.cs b/Vocaluxe/Lib/Draw/CDirect3D.cs index 141fedbc..a37722fa 100644 --- a/Vocaluxe/Lib/Draw/CDirect3D.cs +++ b/Vocaluxe/Lib/Draw/CDirect3D.cs @@ -276,8 +276,6 @@ namespace Vocaluxe.Lib.Draw y = 0; x = 0; - if ((float)w / (float)h == CSettings.GetRenderAspect()) - return; if ((float)w / (float)h > CSettings.GetRenderAspect()) { //The windows's width is too big @@ -512,7 +510,10 @@ namespace Vocaluxe.Lib.Draw CSettings.bFullScreen = true; EnterFullScreen(); } - RResize(); + + //Resize window if aspect ratio is incorrect + if ((float)w / (float)h != CSettings.GetRenderAspect()) + RResize(); while (_Run) {