mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-18 06:00:47 +01:00
xcb: Fix _put_shm_image_boxes if no SHM available
This function always returned CAIRO_INT_STATUS_SUCCESS, even if it didn't do anything. This commit makes the function return CAIRO_INT_STATUS_UNSUPPORTED instead. No unit test for this, because we currently do not test the !SHM case automatically. Perhaps we should? Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
0537479bd1
commit
d31dc73f9b
1 changed files with 1 additions and 2 deletions
|
|
@ -646,9 +646,8 @@ _put_shm_image_boxes (cairo_xcb_surface_t *surface,
|
|||
shm_info->offset);
|
||||
}
|
||||
}
|
||||
return CAIRO_INT_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
return CAIRO_INT_STATUS_SUCCESS;
|
||||
#endif
|
||||
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue