Bad Visual on Solaris

Ken Mandelberg <[email protected]>
Newsgroups gmane.comp.video.ogle.user
Message-ID <1065098776.1374.36.camel@orac4>
I'm running on Solaris/Sparc with only a XVR100 framebuffer.

There is Solaris specific code in Ogle 0.9.1 that attempts to find a
visual with a gamma of 1.0. The XVR100 presents only one visual and its
gamma is 2.2. The search loop has a bug in the case it finds no visual
with gamma 1.0 and uses an out of bound index to select the visual.
This manifests as a bad value in XCreateColormap.

I don't know if this has been reported before, but below is a fix that
settles for another visual in this case.

Is it unusual having only a 2.2 gamma? It does look a little dark.


*** video_output_x11.c  Thu Oct  2 08:41:37 2003
--- video_output_x11.c.orig     Thu Oct  2 08:35:56 2003
***************
*** 774,780 ****
          }
        }
        }
-         if (n == vinfo_nitems) n=0;
  #endif
        NOTE("Found %d matching visuals, using visual id: %x\n",
           vinfo_nitems, (unsigned)vinfo_list[n].visualid);
--- 774,779 ----


Ken Mandelberg      | [email protected]          
Emory University    | 
Dept of Math and CS | Phone: Voice (404) 727-7963 
Atlanta, GA 30322   |        FAX 727-5611
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.