summaryrefslogtreecommitdiff
path: root/textwindow.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-04-13 11:41:15 +0200
committerlouis <louis.braun@gmx.de>2013-04-13 11:41:15 +0200
commit24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7 (patch)
tree59362f4f453424949bd5da3da72c5bd6f642ed68 /textwindow.c
parent7a725623ef50c396fe63318049e71dbac53764e6 (diff)
downloadskin-nopacity-24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7.tar.gz
skin-nopacity-24bb51ba0d1b86f0a3d7e4ee1e5607aa9246b5d7.tar.bz2
fixed another small bug in auto scaling
Diffstat (limited to 'textwindow.c')
-rw-r--r--textwindow.c3
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;
}