On Sun, Aug 01, 2004 at 11:19:42PM +0200, Stefan Lucke wrote:
> On Sonntag, 1. August 2004 22:03, Ville Syrj�l� wrote:
> > On Sun, Aug 01, 2004 at 09:37:11PM +0200, Stefan Lucke wrote:
>
> [ .. ]
>
> > > 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.
>
> Grr, so doing this call AFTER "videoLayer->SetConfiguration(dlc);" is better :-).
Indeed. SetConfiguration() with DLCONF_WIDTH or DLCONF_HEIGHT resets the
source rectangle.
> But now I'm fighting with the same visible error as I falsly cried in my
> "BUG in stretchblit" mail. Or are there some side effects between SetSourceRectangle
> and SetScreenLocation ?
SetScreenLocation affects the area configured by SetSourceRectangle().
I just noticed that the matrox code had a bug with vertical cropping. Fix
is already in cvs...
--
Ville Syrj�l�
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/