Hide overlay if off screen.

loadfix
cc9cii 10 years ago
parent 313aed078e
commit 961867e39f

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

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

Loading…
Cancel
Save