Plan 9 from Bell Labs’s /usr/web/sources/contrib/quanstro/root/sys/src/cmd/compose/compose.c

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "compose.h"

static void
compose(Memimage *screen, Memimage *im, ulong op)
{
	memdraw(screen, screen->r, im, ZP, nil, ZP, op);
}

void
composer(C *c, int n, ulong chan, ulong op)
{
	int i;
	Memimage *im;

	memimageinit();
	im = pageimg(c + 0, chan);
	for(i = 1; i < n; i++)
		compose(im, pageimg(c + i, 0), op);
	writememimage(1, im);
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.