On Sun, Aug 01, 2004 at 09:37:11PM +0200, Stefan Lucke wrote:
> On Sonntag, 1. August 2004 01:36, Ville Syrj�l� wrote:
> > On Wed, Jul 28, 2004 at 09:23:09PM +0200, Stefan Lucke wrote:
>
> [ .. ]
>
> > I'm not sure what's going on. Nothing in the matrox driver changes should
> > cause a segfault.
>
> with that code:
>
> try
> {
> fprintf (stderr, " area = %d %d %d %d ",sxoff, syoff, swidth, sheight);
> videoLayer->SetSourceRectangle (sxoff, syoff, swidth, sheight);
> fprintf (stderr, " OK !!\n");
> }
> catch (DFBException *ex)
> {
> fprintf (stderr,"Caught: action=%s, result=%s\n",
> ex->GetAction(), ex->GetResult());
> }
>
> I get (1st call):
> [dfb] (re)configuring Videolayer to 720 x 576 (720x576)
> area = 0 0 720 576 Caught: action=IDirectFBDisplayLayer::SetSourceRectangle(int,
> int, int, int), result=Invalid area present!
The INVAREA must come from dfb_layer_context_set_sourcerectangle() in
src/core/layer_context.c. Check the used source and config.{width,height}
values in that function.
> (2nd call):
> [dfb] (re)configuring Videolayer to 720 x 576 (720x576)
> area = 0 0 720 576 OK !!
>
> (or 3rd call using source rect):
> [dfb] (re)configuring Videolayer to 720 x 576 (540x576)
> area = 90 0 540 576 OK !!
>
> Which acts as a NOOP (full area is displayed and not 540 pixels with xoffset 90).
--
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/