diff options
author | louis <louis.braun@gmx.de> | 2013-04-13 11:41:15 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-13 11:41:15 +0200 |
commit | 24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7 (patch) | |
tree | 59362f4f453424949bd5da3da72c5bd6f642ed68 | |
parent | 7a725623ef50c396fe63318049e71dbac53764e6 (diff) | |
download | skin-nopacity-24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7.tar.gz skin-nopacity-24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7.tar.bz2 |
fixed another small bug in auto scaling
-rw-r--r-- | textwindow.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |