From ae2906ca8302cd41f05582232799b35e0b05414d Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sun, 12 Aug 2001 01:26:18 +0000 Subject: Fixed particle blending. --- src/win95/awtexld.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/win95/awtexld.cpp') diff --git a/src/win95/awtexld.cpp b/src/win95/awtexld.cpp index f8b3610..c48c4df 100644 --- a/src/win95/awtexld.cpp +++ b/src/win95/awtexld.cpp @@ -432,10 +432,8 @@ void AwBackupTexture::ChoosePixelFormat(AwTl::CreateTextureParms const & _parmsR // transparency? m_bTranspMask = HasTransparentMask(fMyFlags & AW_TLF_TRANSP ? true : false); - if (_parmsR.loadTextureB || fMyFlags & AW_TLF_TEXTURE) { - fprintf(stderr, "AwBackupTexture::ChoosePixelFormat(...)\n"); #if 0 // use a texture format unsigned nColours = GetNumColours(); @@ -445,7 +443,7 @@ void AwBackupTexture::ChoosePixelFormat(AwTl::CreateTextureParms const & _parmsR for (LIF itFormat(&listTextureFormats); !itFormat.done(); itFormat.next()) { - AdditionalPixelFormat const * pThisFormat = &itFormat(); + AdditionalPixelFormat * pThisFormat = &itFormat(); // is this format suitable? // ignoring alpha for now if @@ -495,12 +493,12 @@ void AwBackupTexture::ChoosePixelFormat(AwTl::CreateTextureParms const & _parmsR { // use display surface format pixelFormat = pfSurfaceFormat; + #endif - } - -/* Just convert the texture to 32bpp */ + /* Just convert the texture to 32bpp */ pixelFormat.palettizedB = 0; - pixelFormat.alphaB = 0; + + pixelFormat.alphaB = 1; pixelFormat.validB = 1; pixelFormat.bitsPerPixel = 32; pixelFormat.redLeftShift = 0; @@ -509,8 +507,8 @@ void AwBackupTexture::ChoosePixelFormat(AwTl::CreateTextureParms const & _parmsR pixelFormat.redRightShift = 0; pixelFormat.greenRightShift = 0; pixelFormat.blueRightShift = 0; - pixelFormat.dwRGBAlphaBitMask = 0x00000000; - + pixelFormat.dwRGBAlphaBitMask = 0xFF000000; + } } extern "C" { @@ -569,7 +567,7 @@ AwTl::SurfUnion AwBackupTexture::CreateTexture(AwTl::CreateTextureParms const & ++y; } - + /* temp junk */ Tex->w = m_nWidth; Tex->h = m_nHeight; @@ -1404,7 +1402,7 @@ void AwBackupTexture::ConvertRow(AwTl::PtrUnion pDest, unsigned nDestWidth, AwTl } } else - { + { if (m_bTranspMask) GenericConvertRow::Do(pDest,nDestWidth,pSrc.colourP+nSrcOffset,nSrcWidth); else -- cgit v1.3