mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- formatting fix and null check for aborted transition.
This commit is contained in:
parent
c36402eb5c
commit
06d5705ae6
2 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -130,7 +130,8 @@ protected:
|
|||
commentHeight = listboxHeight - savepicHeight - (16 * wScale);
|
||||
commentRight = commentLeft + commentWidth;
|
||||
commentBottom = commentTop + commentHeight;
|
||||
commentRows = commentHeight / rowHeight;
|
||||
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);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Reference in a new issue