.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PM2FB_SETCOLREG" "9" "09 October 2005" "" ""
.SH NAME
pm2fb_setcolreg \- Sets a color register.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pm2fb_setcolreg (unsigned \fIregno\fB, unsigned \fIred\fB, unsigned \fIgreen\fB, unsigned \fIblue\fB, unsigned \fItransp\fB, struct fb_info * \fIinfo\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIregno\fB\fR
boolean, 0 copy local, 1 \fBget_user\fR function
.TP
\fB\fIred\fB\fR
frame buffer colormap structure
.TP
\fB\fIgreen\fB\fR
The green value which can be up to 16 bits wide
.TP
\fB\fIblue\fB\fR
The blue value which can be up to 16 bits wide.
.TP
\fB\fItransp\fB\fR
If supported the alpha value which can be up to 16 bits wide.
.TP
\fB\fIinfo\fB\fR
frame buffer info structure
.SH "DESCRIPTION"
.PP
Set a single color register. The values supplied have a 16 bit
magnitude which needs to be scaled in this function for the hardware.
Pretty much a direct lift from tdfxfb.c.
.PP
Returns negative errno on error, or zero on success.