summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscuri <scuri>2011-08-18 01:01:36 +0000
committerscuri <scuri>2011-08-18 01:01:36 +0000
commit8bf66acf2301188c66b5adf5f6ad966bb2e32582 (patch)
tree1298cced0eea6638f11fff8b671cc03979b20d89
parent51f26b3868b62f70f49e11dab933b4778ffa84c6 (diff)
*** empty log message ***
-rw-r--r--html/en/history.html3
-rw-r--r--src/cd_bitmap.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/html/en/history.html b/html/en/history.html
index df7b432..444dfa1 100644
--- a/html/en/history.html
+++ b/html/en/history.html
@@ -35,7 +35,8 @@
compiled using older Cairo and Pango versions.</li>
<li><span class="hist_fixed">Fixed:</span> <strong>cdCanvasKillCanvas</strong>
for the CD_IMAGE and CD_DBUFFER drivers of the Cairo base driver.</li>
- <li><span class="hist_fixed">Fixed:</span> <strong>cdInitBitmap</strong> for
+ <li><span class="hist_fixed">Fixed:</span> <strong>cdInitBitmap</strong> and
+ <strong>cdCreateBitmap</strong> for
<span style="font-size:12.0pt;font-family:&quot;Helvetica&quot;,&quot;sans-serif&quot;;
mso-fareast-font-family:&quot;Times New Roman&quot;;color:black;mso-ansi-language:PT-BR;
mso-fareast-language:PT-BR;mso-bidi-language:AR-SA">CD_RGBA.</span></li>
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;