> I'm trying to get a glcanvas to share the colormap of the form that it
> resides on. Is there any way to do this?
Yes.
This is my hack to the glx_init() routine in gl.c:
/* change canvas defaults */
fl_set_canvas_visual(ob, vi->visual);
fl_set_canvas_depth(ob, vi->depth);
/* spl hack begins here */
screen_number = DefaultScreen( fl_get_display() );
default_visual = DefaultVisual( fl_get_display(), screen_number );
if ( default_visual->class != vi->visual->class )
fl_set_canvas_colormap(ob, fl_create_colormap(vi, 1));
else
fl_set_canvas_colormap( ob,
DefaultColormap( fl_get_display(),
screen_number ) );
This works under OpenGL and under Mesa.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/