Fix TV and splash on res change

This commit is contained in:
elasota
2020-04-04 18:50:29 -04:00
parent 59e9a9480e
commit 805638f2c9
5 changed files with 31 additions and 20 deletions

View File

@@ -698,8 +698,7 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
if (SectRect(&itsRect, &testRect, &whoCares))
{
#ifdef COMPILEQT
if ((thisMac.hasQT) && (hasMovie) && (neighbor == kCentralRoom) &&
(!tvInRoom))
if ((thisMac.hasQT) && (hasMovie) && (neighbor == kCentralRoom))
{
whoCares = tvScreen1;
ZeroRectCorner(&whoCares);
@@ -708,7 +707,9 @@ void DrawARoomsObjects (short neighbor, Boolean redraw)
CenterRectInRect(&movieRect, &whoCares);
theMovie.m_renderRect = movieRect;
theMovie.m_constrainRect = whoCares;
tvOn = thisObject.data.g.state;
if (!tvInRoom)
tvOn = thisObject.data.g.state;
}
#endif
DrawTV(&itsRect, thisObject.data.g.state, isLit);