From 24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 13 Apr 2013 11:41:15 +0200 Subject: fixed another small bug in auto scaling --- textwindow.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/textwindow.c b/textwindow.c index 2fe6d36..04ea9b4 100644 --- a/textwindow.c +++ b/textwindow.c @@ -79,6 +79,9 @@ void cNopacityTextWindow::Action(void) { oldVidWin.SetWidth(vidWin->Width()); oldVidWin.SetHeight(vidWin->Height()); cRect vidWinNew = cDevice::PrimaryDevice()->CanScaleVideo(availableRect); + vidWin->SetX(vidWinNew.X()); + vidWin->SetY(vidWinNew.Y()); + vidWin->SetWidth(vidWinNew.Width()); vidWin->SetHeight(vidWinNew.Height()); scaledWindow = true; } -- cgit v1.2.3