PM2FB_SETCOLREG

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

pm2fb_setcolreg - Sets a color register.  

SYNOPSIS

"SYNOPSIS"

int pm2fb_setcolreg (unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned transp, struct fb_info * info);  

ARGUMENTS

regno
boolean, 0 copy local, 1 get_user function
red
frame buffer colormap structure
green
The green value which can be up to 16 bits wide
blue
The blue value which can be up to 16 bits wide.
transp
If supported the alpha value which can be up to 16 bits wide.
info
frame buffer info structure
 

DESCRIPTION

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.

Returns negative errno on error, or zero on success.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:38 GMT, October 09, 2005