PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

DrawText() with blit flags

Hi,

I just tried to use DrawText() and to supply the colorize blitfast flags and no matter what I did it wouldn't colorize. Here is my call:

Code:

// ...
GDBLTFASTFX FX;
FX.dwColorizeColor = RGB(255,0,0);
if(backbuffer.DrawText(x,y,Text,&Font;,0,GDBLTFAST_COLORIZE, &FX;,NULL) != GD_OK) return S_ERR_DRAWTEXT;
// ...


I don't receive an error message, but the text stays black (like in my font).

Am I doing it wrong?

Thanks,

--Eric
Pejo Software - Per · 09 Jul 2003, 07:57 UTC
When I am doing this I also supply the GDBLTFAST_KEYSRC flag.
I just tried it and it has no effect...

--Eric
efortier: Please note the difference between GDBLTFAST_COLORFILL and GDBLTFAST_COLORIZE. GDBLTFAST_COLORIZE will perform a true colorization blend effect, where black will stay black and white will stay white. Perhaps you want the GDBLTFAST_COLORFILL effect instead?

You don't have to supply the GDBLTFAST_KEYSRC flag since it is always on with DrawText.
Thanks Johan, that fixed the thing!

--Eric