summaryrefslogtreecommitdiff
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
parent5f350c0787d2ce76c5bfbfc3b6f69a78d65716e3 (diff)
Fixed: cdInitBitmap for CD_RGBA.
-rw-r--r--html/en/history.html6
-rw-r--r--src/cd_bitmap.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/html/en/history.html b/html/en/history.html
index 2accf04..df7b432 100644
--- a/html/en/history.html
+++ b/html/en/history.html
@@ -27,7 +27,7 @@
<body>
<h2>History of Changes</h2>
-<h3>CVS (18/Mar/2011)</h3>
+<h3>CVS (15/Ago/2011)</h3>
<ul>
<li><span class="hist_new">New:</span> functions <strong>cdContextIsPlus</strong>
and <strong>cdContextType</strong>.</li>
@@ -35,6 +35,10 @@
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
+ <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>
</ul>
<h3><a href="http://sourceforge.net/projects/canvasdraw/files/5.4.1/">Version
5.4.1</a> (09/Nov/2010)</h3>
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*);