summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorscuri <scuri>2011-08-15 17:17:10 +0000
committerscuri <scuri>2011-08-15 17:17:10 +0000
commit419293cfcee27e46525b9f1e94e7da102b7c7d00 (patch)
tree81292c684731cb9352b480177f953e526e2d5e18 /src
parent5f350c0787d2ce76c5bfbfc3b6f69a78d65716e3 (diff)
Fixed: cdInitBitmap for CD_RGBA.
Diffstat (limited to 'src')
-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 234668c..ec4909e 100644
--- a/src/cd_bitmap.c
+++ b/src/cd_bitmap.c
@@ -135,7 +135,7 @@ cdBitmap* cdInitBitmap(int w, int h, int type, ...)
va_start(arglist, type);
- if (type == CD_RGB)
+ if (type == CD_RGB || type == CD_RGBA)
{
data->r = va_arg(arglist, unsigned char*);
data->g = va_arg(arglist, unsigned char*);