clintbellanger/flare — comment on commit 035f05746dfe5613a8bbe26bdb5fc1efc2e6713c
File:  line 0
By manuelafm:

Below are the remaining lines of "font->render" in all the source code, excluding Widget* (which, naturally, need to use font rendering directly).

According to what you said about MenuHUDLog, I think that that sentence in MenuLog shouldn't be converted either (as I already said in MenuLog's pull request), and the same for MenuTalker. I am not sure about MenuTooltip though. Can you please confirm?

$ fgrep -r -C3 "font->render" !(Widget*)
MenuHUDLog.cpp- size = font->calc_size(log_msg[i], list_area.x);
MenuHUDLog.cpp- cursor_y -= size.y + paragraph_spacing;
MenuHUDLog.cpp-
MenuHUDLog.cpp: font->renderShadowed(log_msg[i], 32, cursor_y, JUSTIFY_LEFT, screen, list_area.x, FONT_WHITE);
MenuHUDLog.cpp- }
MenuHUDLog.cpp- else return; // no more new messages
MenuHUDLog.cpp- }
--
MenuLog.cpp- for (int i=log_count[active_log]-display_number; icalc_size(log_msg[active_log][i], list_area.w);
MenuLog.cpp: font->renderShadowed(log_msg[active_log][i], list_area.x, cursor_y, JUSTIFY_LEFT, screen, list_area.w, FONT_WHITE);
MenuLog.cpp- cursor_y += size.y + paragraph_spacing;
MenuLog.cpp- }
MenuLog.cpp-}
--
MenuTalker.cpp-
MenuTalker.cpp- // text overlay
MenuTalker.cpp- line = line + npc->dialog[dialog_node][event_cursor].s;
MenuTalker.cpp: font->render(line, offset_x+48, offset_y+336, JUSTIFY_LEFT, screen, 544, FONT_WHITE);
MenuTalker.cpp-
MenuTalker.cpp- // show advance button if there are more event components, or close button if not
MenuTalker.cpp- if (event_cursor < NPC_MAX_EVENTS-1) {
--
MenuTooltip.cpp-
MenuTooltip.cpp- SDL_FillRect(screen, &background, 0);
MenuTooltip.cpp- for (int i=0; irender(tip.lines[i], cursor_x, cursor_y, JUSTIFY_LEFT, screen, size.x, tip.colors[i]);
MenuTooltip.cpp- cursor_y = font->cursor_y;
MenuTooltip.cpp- }
MenuTooltip.cpp-}