mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 09:39:11 +00:00
Implement CCredits, minor text parser fixes
This commit is contained in:
@@ -162,7 +162,13 @@ void CLineSpacingInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer*
|
||||
|
||||
void CLineSpacingInstruction::PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const { Invoke(state, buf); }
|
||||
|
||||
void CPopStateInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const { state.PopState(); }
|
||||
void CPopStateInstruction::Invoke(CFontRenderState& state, CTextRenderBuffer* buf) const {
|
||||
const auto& oldFont = state.GetFont();
|
||||
state.PopState();
|
||||
if (oldFont.GetObj() != state.GetFont().GetObj()) {
|
||||
buf->AddFontChange(state.GetFont());
|
||||
}
|
||||
}
|
||||
|
||||
void CPopStateInstruction::PageInvoke(CFontRenderState& state, CTextRenderBuffer* buf) const { Invoke(state, buf); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user