diff options
author | louis <louis.braun@gmx.de> | 2013-04-13 11:17:10 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-04-13 11:17:10 +0200 |
commit | 1a865cc274a167ef5df7846e840acaafdc8a56f1 (patch) | |
tree | 497749ce21f5ab31e15ab0f25bedc7c229379989 /textwindow.c | |
parent | 91c004390c528f8abea82f0a867d4e47cd14f996 (diff) | |
download | skin-nopacity-1a865cc274a167ef5df7846e840acaafdc8a56f1.tar.gz skin-nopacity-1a865cc274a167ef5df7846e840acaafdc8a56f1.tar.bz2 |
fixed small bug in auto scaling
Diffstat (limited to 'textwindow.c')
-rw-r--r-- | textwindow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/textwindow.c b/textwindow.c index c999a52..5b5a911 100644 --- a/textwindow.c +++ b/textwindow.c @@ -7,6 +7,7 @@ cNopacityTextWindow::cNopacityTextWindow(cOsd *osd, cFont *font, cRect *vidWin) pixmapBackground = NULL; pixmap = NULL; oldVidWinHeight = 0; + scaledWindow = false; } cNopacityTextWindow::~cNopacityTextWindow(void) { @@ -21,7 +22,7 @@ cNopacityTextWindow::~cNopacityTextWindow(void) { osd->DestroyPixmap(pixmap); pixmap = NULL; } - if (config.scalePicture == 2) + if ((config.scalePicture == 2) && scaledWindow) vidWin->SetHeight(oldVidWinHeight); } @@ -73,6 +74,7 @@ void cNopacityTextWindow::Action(void) { cRect availableRect(vidWin->X(), vidWin->Y(), vidWin->Width(), vidWin->Height() - geometry->Height()); cRect vidWinNew = cDevice::PrimaryDevice()->CanScaleVideo(availableRect); vidWin->SetHeight(vidWinNew.Height()); + scaledWindow = true; } int border = 5; |