diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp index 937048c801f..01b00346363 100644 --- a/Userland/Libraries/LibPDF/Renderer.cpp +++ b/Userland/Libraries/LibPDF/Renderer.cpp @@ -480,7 +480,16 @@ RENDERER_HANDLER(set_stroking_color) return {}; } -RENDERER_TODO(set_stroking_color_extended) +RENDERER_HANDLER(set_stroking_color_extended) +{ + // FIXME: Handle Pattern color spaces + auto last_arg = args.last(); + if (last_arg.has>() && last_arg.get>()->is()) + TODO(); + + state().stroke_color = state().stroke_color_space->color(args); + return {}; +} RENDERER_HANDLER(set_painting_color) { @@ -488,7 +497,16 @@ RENDERER_HANDLER(set_painting_color) return {}; } -RENDERER_TODO(set_painting_color_extended) +RENDERER_HANDLER(set_painting_color_extended) +{ + // FIXME: Handle Pattern color spaces + auto last_arg = args.last(); + if (last_arg.has>() && last_arg.get>()->is()) + TODO(); + + state().paint_color = state().paint_color_space->color(args); + return {}; +} RENDERER_HANDLER(set_stroking_color_and_space_to_gray) {