[cairo-commit] src/cairo-beos-surface.cpp

Christian Biesinger biesi at kemper.freedesktop.org
Thu May 25 12:20:07 PDT 2006


 src/cairo-beos-surface.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

New commits:
diff-tree 0b63baba6e8c3f2f6da52d4476ec595ff87dfc93 (from 22232be7592dadc22fef614aefee9c9398a8510c)
Author: Christian Biesinger <cbiesinger at web.de>
Date:   Thu May 25 17:29:01 2006 +0200

    Make BeOS compile again
    
    ..by passing the cairo_content_t to _cairo_surface_init

diff --git a/src/cairo-beos-surface.cpp b/src/cairo-beos-surface.cpp
index ceddcb6..4d8dfc7 100644
--- a/src/cairo-beos-surface.cpp
+++ b/src/cairo-beos-surface.cpp
@@ -926,7 +926,10 @@ _cairo_beos_surface_create_internal (BVi
         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;


More information about the cairo-commit mailing list