From 8bf66acf2301188c66b5adf5f6ad966bb2e32582 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 18 Aug 2011 01:01:36 +0000 Subject: *** empty log message *** --- html/en/history.html | 3 ++- 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.
  • Fixed: cdCanvasKillCanvas for the CD_IMAGE and CD_DBUFFER drivers of the Cairo base driver.
  • -
  • Fixed: cdInitBitmap for +
  • Fixed: cdInitBitmap and + cdCreateBitmap for CD_RGBA.
  • 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; -- cgit v1.2.3