- formatting fix and null check for aborted transition.

This commit is contained in:
Christoph Oelckers 2019-11-30 23:45:43 +01:00
parent c36402eb5c
commit 06d5705ae6
2 changed files with 4 additions and 3 deletions

View file

@ -112,7 +112,7 @@ bool DImageScrollerMenu::MenuEvent(int mkey, bool fromcontroller)
case MKEY_Back:
// Before going back the currently running transition must be terminated.
pageTransition.previous = nullptr;
pageTransition.current->origin = { 0,0 };
if (pageTransition.current) pageTransition.current->origin = { 0,0 };
return DMenu::MenuEvent(mkey, fromcontroller);
case MKEY_Left:

View file

@ -131,6 +131,7 @@ protected:
commentRight = commentLeft + commentWidth;
commentBottom = commentTop + commentHeight;
commentRows = commentHeight / rowHeight;
UpdateSaveComment();
}
//=============================================================================
@ -252,7 +253,7 @@ protected:
void UpdateSaveComment()
{
//BrokenSaveComment = NewConsoleFont.BreakLines(manager.SaveCommentString, int(commentWidth / FontScale));
BrokenSaveComment = V_BreakLines(NewConsoleFont, int(commentWidth / FontScale), savegameManager.SaveCommentString);
}
//=============================================================================