mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-25 06:10:41 +02:00
PS/Win32-printing: remove redundant checks from _analyze_operation
The check for supported operators is performed earlier in this functions so these two checks in not required.
This commit is contained in:
parent
ff35ffd2a7
commit
af5cdde34d
2 changed files with 0 additions and 12 deletions
|
|
@ -1610,12 +1610,6 @@ _cairo_ps_surface_analyze_operation (cairo_ps_surface_t *surface,
|
|||
* background to convert the pattern to opaque.
|
||||
*/
|
||||
|
||||
if (_cairo_operator_always_opaque (op))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (_cairo_operator_always_translucent (op))
|
||||
return CAIRO_INT_STATUS_FLATTEN_TRANSPARENCY;
|
||||
|
||||
if (_cairo_pattern_is_opaque (pattern))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
else
|
||||
|
|
|
|||
|
|
@ -163,12 +163,6 @@ _cairo_win32_printing_surface_analyze_operation (cairo_win32_surface_t *surface,
|
|||
* background to convert the pattern to opaque.
|
||||
*/
|
||||
|
||||
if (_cairo_operator_always_opaque (op))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
|
||||
if (_cairo_operator_always_translucent (op))
|
||||
return CAIRO_INT_STATUS_FLATTEN_TRANSPARENCY;
|
||||
|
||||
if (_cairo_pattern_is_opaque (pattern))
|
||||
return CAIRO_STATUS_SUCCESS;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue