Re: XForms: Colormap.

From: Steve Lamont (spl@szechuan.ucsd.edu)
Date: Fri May 12 2000 - 09:28:16 EDT

  • Next message: J. Czaplicki: "XForms: Request for help using XForms for Win32"

    # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

    > for (i=0; i<100; i++)
    > {
    > red=a_value_less_than_255;
    > green=a_value_less_than_255;
    > blue=a_value_less_than_255;
    > fl_macolor(IDCOL1+i,red,green,blue);
            fl_mapcolor(...); /* I assume this is what you meant */
    > fl_getmcolor(IDCOL1+i,&rTest,&gTest,&bTest);
    > if (red!=rTest || green !=gTest || blue !=bTest)
    > {
    > fprintf(stderr,"bad Alloc !\n");
    > }
    > }
    >
    > my problem is that some colors are not well allocated by this way...and
    > i don't know why..

    How big is the difference?

    What is probably happening is that XForms is trying to allocate a
    color but the server's Colormap is full, so it tries to get a "close"
    color.

                                                            spl
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Fri May 12 2000 - 09:35:33 EDT