From b2f9d1906b3051cfa99b9927b1b7cf7a5316b957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 6 Feb 2006 10:23:26 +0000 Subject: [PATCH] using alpha is actually correct git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16243 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Bitmap.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/Bitmap.cpp b/src/kits/interface/Bitmap.cpp index bc4352b9cc..7db611c777 100644 --- a/src/kits/interface/Bitmap.cpp +++ b/src/kits/interface/Bitmap.cpp @@ -1241,7 +1241,7 @@ struct Gray1Reader : public BaseReader { //////////////////////////////////////////////////////////////////// -// Writer classes being able to read pixels of certain color spaces +// Writer classes being able to write pixels of certain color spaces // BaseWriter template @@ -1270,8 +1270,7 @@ struct RGB32Writer : public BaseWriter<_PixelType> { pixel.red = color.red; pixel.green = color.green; pixel.blue = color.blue; -// pixel.alpha = 255; -pixel.alpha = color.alpha; + pixel.alpha = color.alpha; BaseWriter<_PixelType>::pixels++; } @@ -1757,7 +1756,7 @@ set_bits(const void *inData, int32 inLength, int32 inBPR, int32 inRowSkip, The currently supported source/target color spaces are \c B_RGB{32,24,16,15}[_BIG], \c B_CMAP8 and \c B_GRAY{8,1}. - \note As this methods is apparently a bit strange to use, OBOS introduces + \note As this methods is apparently a bit strange to use, Haiku introduces ImportBits() methods, which are recommended to be used instead. \param data The data to be copied.