Quoting Simon Willcocks:
> In message <[EMAIL PROTECTED]>
>           Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
> 
> > Quoting Simon Willcocks:
> > > For more dynamic flag manipulation, have a look at the DFB_ADD_DRAWING_FLAG
> > > and other similar macros in dfb++.h for an approach that should presumably
> > > be standard for DFB++.
> > 
> > Patches are welcome ;)
> 
> :-)
> 
> Actually, thinking about it, I'd rather type 
>   flags = DFBSurfaceDescriptionFlags( flags | DSDESC_WIDTH );
> 
> than
>   DFB_ADD_SURFACE_DESC( flags, DSDESC_WIDTH );
> 
> event though it's a bit longer, there's just one name to remember!

Your version looks better, as it still directly shows the assignment.

Something shorter might be:

#define DSDESC(x)  ((DFBSurfaceDescriptionFlags) (x))

   flags = DSDESC( flags | DSDESC_WIDTH );

-- 
Best regards,
  Denis Oliver Kropp

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

                            Convergence GmbH


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

Reply via email to