Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pangocffi: don't cast to "cairo_t *"
Similar to d10c3bb ("don't cast before free"), we do not actually need these casts: the _pointer member of CairoContext is a cairo_t * already. I have no real memory of why I thought these were needed initially and didn't look through the git logs to figure it out, but I can if we want. I have been running a branch with this change for a bit and haven't seen any weirdness. These are the last two casts in the tree, so hopefully this will be the last version of this patch. Finally, looking at the code, there's no real reason we do this weird monkey-patching of the cairo context I don't think. We could split this out into separate function calls in our own object and it would work just fine. Maybe I'll do that if people think it's reasonable. Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
- Loading branch information