1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 21:45:32 +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();