From: Geert U. <ge...@li...> - 2001-11-29 07:52:20
|
On Wed, 28 Nov 2001, James Simmons wrote: > > > +struct fbcursor { > > > + __u16 set; /* what to set */ > > > + __u16 enable;/* cursor on/off */ > > > + struct fbcurpos pos;/* cursor position */ > > > + struct fbcurpos hot;/* cursor hot spot */ > > > + struct fb_cmap cmap;/* color map info */ > > > + struct fbcurpos size;/* cursor bit map size */ > > > + char *image;/* cursor image bits */ > > > + char *mask;/* cursor mask bits */ > > > +}; > > > > Any details about contents of image and mask? > > Depends on what color depth you use for the cursor. > > > Or is it just monochromatic > > 1bpp image? There is hardware which can do 16color hardware cursors (+ > > transparent+inverse). > > I know. That is why we have a colormap for the cursor. This allows for > much more for the cursor than a mono color map. > > > And if it is 1bpp image, is it 0/1/transparent/invert (XGA), or > > transp./transp./0/1 (X)? > > Should be able to support that as well. I haven't added any flags for > that. Hm. Just add a field to contain the color index for an inverting color (e.g. 3 for XGA) or -1 if not supported. For transparency, use the alpha in the cmap. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds |