summaryrefslogtreecommitdiff
path: root/common/fbutil.h
blob: 5961681fecabc2890868162f8f38a402ccf65341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef FBUTIL_H
#define FBUTIL_H

#include "fb.h"

static inline Bool fb_full_planemask(DrawablePtr pDrawable, unsigned long mask)
{
	unsigned long fullmask = FbFullMask(pDrawable->depth);

	return (mask & fullmask) == fullmask;
}

#endif