Extract pad stroke copy region helper

This commit is contained in:
2026-06-13 23:10:48 +02:00
parent 884357e18e
commit d03f0c6371
5 changed files with 55 additions and 8 deletions

View File

@@ -1080,13 +1080,9 @@ void Canvas::stroke_draw()
face_index));
},
[&](const pp::paint_renderer::CanvasStrokeCopyRegion& copy_region) {
copy_framebuffer_to_texture_2d(
copy_region.x,
copy_region.y,
copy_region.x,
copy_region.y,
copy_region.width,
copy_region.height);
pp::panopainter::execute_legacy_canvas_stroke_pad_copy_region(
copy_region,
copy_framebuffer_to_texture_2d);
},
[&](int face_index) {
pp::panopainter::unbind_legacy_canvas_stroke_texture_inputs(