Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
font/sdl_ttf_compat: Avoid rendering twice in pango_draw_text()
We need to obtain the text extents prior to rendering regardless. In the best case, we do so in advance before rendering, which internally doesn't recalculate the text layout if the rendering parameters haven't been touched in the meantime. In the worst case, we calculate extents twice but only render once.
- Loading branch information