ddbltfx.dwSize = sizeof(ddbltfx);
if (Is_555)
ddbltfx.dwFillColor = RGB16BIT555(0,green,0);
else
ddbltfx.dwFillColor = RGB16BIT565(0,green,0);
green++;
if (green > 254)
green = 0;
Then I do the normal bland out the BackBuffer with lpBackBuffer->Blt, etc... flip...
And now if I replaced green in the color macro''s with 255 I get a nice perfect bright green, if I put in 128 I get that middle green that we all know so well. So I presumed it was working I also tried other colors like red and blue and yellow.
However as soone as I started cycle the colors like this, it fades from black to green about 4 time then the next four go from red to yellow!?!? Then it starts over with black to green fades (Which is what I''d expect...)
Any ideas? Oh and green is a char or byte.
I''m new to C++ but I''ve done this in assembler many a times easy!
Also what''s the fastest macro you guys got on hand? I''ve tried 3, this is the fastest. One of them would actually slow the frame rate, being called 1 per frame! Ridiculous....
Thanks,
Ben
__________________________
Mencken's Law:
"For every human problem, there is a neat, simple solution; and it's always wrong.""Computers in the future may weigh no more than 1.5 tons." - Popular Mechanics, forecasting the relentless march of science in 1949