Le 01/04/2010 18:19, Tiago Vignatti a écrit :
> Allows MAXSCREENS to be determined at run time instead of compile time, adding
> a new -maxscreens command line flag.

[snip]

There seems to be a lot of busted indentation throughout the patch. But
if this is just a first review, I won't nitpick :)

> @@ -1805,7 +1854,7 @@ int PanoramiXPutImage(ClientPtr client)
>  
>  int PanoramiXGetImage(ClientPtr client)
>  {
> -    DrawablePtr      drawables[MAXSCREENS];
> +    DrawablePtr      *drawables;
>      DrawablePtr      pDraw;
>      PanoramiXRes     *draw;
>      xGetImageReply   xgi;
> @@ -1869,12 +1918,14 @@ int PanoramiXGetImage(ClientPtr client)
>           return(BadMatch);
>      }
>  
> +    MAXSCREENSALLOC_RETURN(drawables, BadAlloc);
>      drawables[0] = pDraw;
>      for(i = 1; i < PanoramiXNumScreens; i++) {
>       rc = dixLookupDrawable(drawables+i, draw->info[i].id, client, 0,
>                              DixGetAttrAccess);
>       if (rc != Success)
> -         return rc;
> +        MAXSCREENSFREE(drawables);
> +        return rc;
>      }

This hunk is probably missing a pair of curly braces, isn't it?

The rest looks fine but maybe this could be split in several patches, to
make reviewing easier?

Otherwise, it's a really good first step towards a fully dynamic screen
list.

Cheers,

Rémi
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to