1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-14 01:19:59 +00:00

Hide overlay if off screen.

This commit is contained in:
cc9cii 2014-10-13 20:58:07 +11:00
parent 313aed078e
commit 961867e39f
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ TextOverlay::~TextOverlay()
void TextOverlay::show(bool show)
{
if(show)
if(show && mOnScreen)
mContainer->show();
else
mContainer->hide();

View File

@ -35,7 +35,7 @@ namespace CSVRender
QRect mPos;
bool mEnabled;
bool mOnScreen; // not used
bool mOnScreen;
int mInstance;
Ogre::FontPtr getFont();