mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
Loading…
Reference in a new issue