From 5196bd15e90b56ccfaabe1ce44fd352a2e05bd51 Mon Sep 17 00:00:00 2001 From: thedemons Date: Tue, 11 Oct 2022 22:45:27 +0700 Subject: [PATCH] Docs: Update outdated code sample (#5766) --- docs/FONTS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/FONTS.md b/docs/FONTS.md index 8426e54f8..49a555bc5 100644 --- a/docs/FONTS.md +++ b/docs/FONTS.md @@ -277,8 +277,8 @@ io.Fonts->GetTexDataAsRGBA32(&tex_pixels, &tex_width, &tex_height); for (int rect_n = 0; rect_n < IM_ARRAYSIZE(rect_ids); rect_n++) { - int rect_id = rects_ids[rect_n]; - if (const ImFontAtlas::CustomRect* rect = io.Fonts->GetCustomRectByIndex(rect_id)) + int rect_id = rect_ids[rect_n]; + if (const ImFontAtlasCustomRect* rect = io.Fonts->GetCustomRectByIndex(rect_id)) { // Fill the custom rectangle with red pixels (in reality you would draw/copy your bitmap data here!) for (int y = 0; y < rect->Height; y++)