mirror of https://github.com/GNOME/gimp.git
app: in gimppaintcore-loops, unsuppress COMBINE_PAINT_MASK_TO_CANVAS_BUFFER algorithm
In gimppaintcore-loops, unsuppress the COMBINE_PAINT_MASK_TO_CANVAS_BUFFER algorithm (partially reverts commit b717ead1abd487f663668ac131883dff0ffe4557.) In gimp_paint_core_paste() it's always used together with CANVAS_BUFFER_TO_PAINT_BUF_ALPHA, which matches a combined algorithm, preventing it from being called, however, it can still be called through gimp_paint_core_replace(), which uses it together with CANVAS_BUFFER_TO_COMP_MASK, which doesn't have a combined algorithm. We can, however, filter out CANVAS_BUFFER_TO_PAINT_BUF_ALPHA whenver COMBINE_PAINT_MASK_TO_CANVAS_BUFFER is matched (since the combined algorithm will be matched beforehand when both algorithms are included).
This commit is contained in:
parent
7c1429d1ff
commit
6fe57a946b
|
@ -1251,6 +1251,7 @@ struct CombinePaintMaskToCanvasBuffer :
|
|||
static constexpr guint filter =
|
||||
base_type::filter |
|
||||
GIMP_PAINT_CORE_LOOPS_ALGORITHM_COMBINE_PAINT_MASK_TO_CANVAS_BUFFER |
|
||||
GIMP_PAINT_CORE_LOOPS_ALGORITHM_CANVAS_BUFFER_TO_PAINT_BUF_ALPHA |
|
||||
GIMP_PAINT_CORE_LOOPS_ALGORITHM_PAINT_MASK_TO_PAINT_BUF_ALPHA |
|
||||
GIMP_PAINT_CORE_LOOPS_ALGORITHM_PAINT_MASK_TO_COMP_MASK;
|
||||
|
||||
|
@ -1318,7 +1319,7 @@ struct CombinePaintMaskToCanvasBuffer :
|
|||
}
|
||||
};
|
||||
|
||||
static SuppressedAlgorithmDispatch<
|
||||
static AlgorithmDispatch<
|
||||
CombinePaintMaskToCanvasBuffer,
|
||||
GIMP_PAINT_CORE_LOOPS_ALGORITHM_COMBINE_PAINT_MASK_TO_CANVAS_BUFFER,
|
||||
decltype (dispatch_paint_mask),
|
||||
|
|
Loading…
Reference in New Issue