can't get 8-bit visual on SGI

Trent Piepho (
Wed, 15 Jan 1997 10:17:44 -0800 (PST)

To subscribers of the xforms list from Trent Piepho <> :

I'm trying to write a program that has a canvas with an 8-bit visual.

When I try it on an Indy that can have both 24-bit and 8-bit visuals at the
same time it crashes. The main form has a 24-bit visual, and when I
call fl_show_form after having selected an 8-bit visual for the canvas with
fl_set_canvas_visual it crashes with a BadMatch error on XCreateWindow. If I
start the program with -depth 8, then everything works.

What's going on here? I can't have a 8-bit window inside a 24-bit window?
The root window is 8-bit, so it seems I can have 24-bit inside 8-bit.

The manual is somewhat unclear on when certain functions can be called,
relative to when the form is shows.
fl_get_canvas_id() After
fl_set_canvas_attributes() Before
fl_set_canvas_visual() ???
fl_set_canvas_colormap() ???
fl_set_canvas_depth() ???

Does anyone know what the ???s are?

|Gazing up to the breeze of the heavens \ on a quest, meaning, reason |
|came to be, how it begun \ all alone in the family of the sun |
|curiosity teasing everyone \ on our home, third stone from the sun. |
|Trent Piepho ( -- Metallica |