diff options
-rw-r--r-- | html/en/history.html | 3 | ||||
-rw-r--r-- | src/cd_bitmap.c | 2 |
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:"Helvetica","sans-serif"; mso-fareast-font-family:"Times New Roman";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; |