1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibPDF: Implement set_flatness_tolerance

We now track it in the graphics state. It isn't used for anything yet.
Fixes the one thing that rendering the first 100 pages of
pdf_reference_1-7.pdf complains about.
This commit is contained in:
Nico Weber 2023-07-12 14:25:22 -04:00 committed by Tim Flynn
parent 52ff180ed4
commit c625ba34fe
2 changed files with 8 additions and 1 deletions

View file

@ -181,7 +181,12 @@ RENDERER_HANDLER(set_dash_pattern)
}
RENDERER_TODO(set_color_rendering_intent)
RENDERER_TODO(set_flatness_tolerance)
RENDERER_HANDLER(set_flatness_tolerance)
{
state().flatness_tolerance = args[0].to_float();
return {};
}
RENDERER_HANDLER(set_graphics_state_from_dict)
{