Hello,
My hardware supports constant alpha blitting. After implementing the code in
the display driver and returning the correct caps it still doesn't work.
Because I don't have source for ddoverlay i have stepped through the
assembler code and found, that there must be a mistake in source code.
Assembly code does the following:
r1 = 1 << dwAlphaConstBitDepth;
r1 = ~r1;
r2 = dwAlphaConst;
TST r1, r2
BEQ error
In my case, I set dwAlphaConstBitDepth to 4 and dwAlphaConst to a value
between 0 and 0x0F.
r1 = 1 << 4 = 0x10;
r1 = ~r1 = 0xFFFFFFEF;
r2 = dwAlphaConst;
TST r1, r2
BEQ error
But then, I always jump to error. Only when i set dwAlphaConst to 0x10, the
function works. So this must be an error and possibly MS can fix it.
Can anybody confirm this bug ?
Regards
Holger