Well, there in lies my problem, thanks Denis.  It seems that for srcFormat
and dstFormat registers, the values are 1 for 8 bit and 3 for 16 bit.

Thanks,
David Wood


-----Original Message-----
From: Denis Oliver Kropp [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 07, 2002 7:08 PM
To: Wood, David
Cc: Directfb-Dev (E-mail)
Subject: Re: [directfb-dev] DFB_PIXELFORMAT_INDEX Macro


Quoting Wood, David ([EMAIL PROTECTED]):
> I noticed in my source and destination validation it's setting the
srcformat
> to be the return of DFB_PIXELFORMAT_INDEX macro.  I'm running in 16bit
mode,
> my supposition at the moment is that the return values of
> DFB_PIXELFORMAT_INDEX do not exactly match the proper values for the
> srcFormat and dstFormat registers on the 2D chipset for the Voodoo.  For a
> 16bit rgb surface, what is the final return of this macro?  I suppose I
> could calculate it myself, but I thought I'd be lazy and ask.

DFB_PIXELFORMAT_INDEX( DSPF_RGB16 )  is 1.
DFB_PIXELFORMAT_INDEX( DSPF_RGB32 )  is 3.

So it seems to use the right entries of blitFormat[].

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

           convergence integrated media GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to