[lkml]   [2001]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Hooks for new fbdev api
    On 29 Nov 01 at 9:35, 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 */

    >From what you wrote I assume that cmap.start must be 0 and cmap.len
    some length, and it must be always set, as otherwise it is impossible
    to guess image/mask depth from it.

    > + struct fbcurpos size;/* cursor bit map size */
    > + char *image;/* cursor image bits */
    > + char *mask;/* cursor mask bits */

    And maybe it is better to go with Geert idea? Remove mask, and
    make image just really use cmap - if cmap entry is 100% transparent,
    it is like that bit(mask) == 1, and add one more field for inverted
    cmap entry. As no driver can use image/mask immediately anyway, there
    is no big problem.

    I hope that mask/image format is going to be specified somewhere
    more exactly - like whether each image/mask line consist of
    non-fractional number of bytes, what happens if cmap has 8 entries
    and other legal, but hard to implement, features...
    Petr Vandrovec

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:13    [W:0.021 / U:0.440 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site