summaryrefslogtreecommitdiff
path: root/src/cd_bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cd_bitmap.c')
-rw-r--r--src/cd_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cd_bitmap.c b/src/cd_bitmap.c
index ec4909e..add6bb7 100644
--- a/src/cd_bitmap.c
+++ b/src/cd_bitmap.c
@@ -79,7 +79,7 @@ cdBitmap* cdCreateBitmap(int w, int h, int type)
return NULL;
}
- if (type == CD_RGB)
+ if (type == CD_RGB || type == CD_RGBA)
{
data->r = data->buffer;
data->g = data->r + size;