panoramiX: convert 0->panoramiXNumScreens loops to macro (v3)
This just uses the FOR_NSCREENS macro instead. v2: remove some of the 1->x loops. v3: drop the 1->0 loop, will rework later. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
@@ -2186,7 +2186,7 @@ PanoramiXCopyColormapAndFree(ClientPtr client)
|
||||
newCmap->type = XRT_COLORMAP;
|
||||
panoramix_setup_ids(newCmap, client, stuff->mid);
|
||||
|
||||
FOR_NSCREENS_BACKWARD(j){
|
||||
FOR_NSCREENS_BACKWARD(j) {
|
||||
stuff->srcCmap = cmap->info[j].id;
|
||||
stuff->mid = newCmap->info[j].id;
|
||||
result = (* SavedProcVector[X_CopyColormapAndFree])(client);
|
||||
|
||||
Reference in New Issue
Block a user