mirror of https://github.com/AxioDL/metaforce.git
CTextRenderBuffer: Remove use of const_cast within Render()
Same behavior but way less casting.
This commit is contained in:
parent
3e07a06355
commit
0aff4dc21e
|
@ -186,8 +186,8 @@ void CGuiTextSupport::AutoSetExtent() {
|
|||
x38_extentY = bounds.second.y;
|
||||
}
|
||||
|
||||
void CGuiTextSupport::Render() const {
|
||||
const_cast<CGuiTextSupport*>(this)->CheckAndRebuildRenderBuffer();
|
||||
void CGuiTextSupport::Render() {
|
||||
CheckAndRebuildRenderBuffer();
|
||||
if (CTextRenderBuffer* buf = GetCurrentPageRenderBuffer()) {
|
||||
SCOPED_GRAPHICS_DEBUG_GROUP("CGuiTextSupport::Draw", zeus::skBlue);
|
||||
zeus::CTransform oldModel = CGraphics::g_GXModelMatrix;
|
||||
|
|
|
@ -104,7 +104,7 @@ public:
|
|||
const std::pair<zeus::CVector2i, zeus::CVector2i>& GetBounds();
|
||||
void AutoSetExtent();
|
||||
|
||||
void Render() const;
|
||||
void Render();
|
||||
void SetGeometryColor(const zeus::CColor& col);
|
||||
void SetOutlineColor(const zeus::CColor& col);
|
||||
void SetFontColor(const zeus::CColor& col);
|
||||
|
|
Loading…
Reference in New Issue