mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 17:50:21 +01:00
Make BeOS compile again
..by passing the cairo_content_t to _cairo_surface_init
This commit is contained in:
parent
22232be759
commit
0b63baba6e
1 changed files with 4 additions and 1 deletions
|
|
@ -926,7 +926,10 @@ _cairo_beos_surface_create_internal (BView* view,
|
|||
return const_cast<cairo_surface_t*>(&_cairo_surface_nil);
|
||||
}
|
||||
|
||||
_cairo_surface_init(&surface->base, &cairo_beos_surface_backend);
|
||||
cairo_content_t content = CAIRO_CONTENT_COLOR;
|
||||
if (bmp && (bmp->ColorSpace() == B_RGBA32 || bmp->ColorSpace() == B_RGBA15))
|
||||
content = CAIRO_CONTENT_COLOR_ALPHA;
|
||||
_cairo_surface_init(&surface->base, &cairo_beos_surface_backend, content);
|
||||
|
||||
surface->view = view;
|
||||
surface->bitmap = bmp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue