From cb959ef457a670a5e827963d4a85f6c732993295 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Sun, 7 Jun 2009 20:29:13 +0100 Subject: [PATCH] [cogl-bitmap] Fix minor copy and paste error in _cogl_bitmap_fallback_premult The returned bitmap format should include the COGL_PREMULT_BIT flag not have it explicitly removed as for _cogl_bitmap_fallback_unpremult. --- clutter/cogl/common/cogl-bitmap-fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/cogl/common/cogl-bitmap-fallback.c b/clutter/cogl/common/cogl-bitmap-fallback.c index a7e9704d9..e750a7ccf 100644 --- a/clutter/cogl/common/cogl-bitmap-fallback.c +++ b/clutter/cogl/common/cogl-bitmap-fallback.c @@ -416,7 +416,7 @@ _cogl_bitmap_fallback_premult (const CoglBitmap *bmp, /* Initialize destination bitmap */ *dst_bmp = *bmp; - dst_bmp->format = (bmp->format & COGL_UNPREMULT_MASK); + dst_bmp->format |= COGL_PREMULT_BIT; /* Allocate a new buffer to hold converted data */ dst_bmp->data = g_malloc (sizeof(guchar)