Fixed resizing

This commit is contained in:
Stephan Sundermann committed 2012-03-28 14:27:57 +02:00
1 parent 3804810545
commit fa975a9960
1 file changed
+4 -3
+4 -3
View File
@@ -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)
{