Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!think.com!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: doug@genmri.UUCP (Doug Becker) Newsgroups: comp.windows.x Subject: XView dynamic CMSes and real colormap indices Message-ID: <9101301830.AA22946@genmri.sane.COM> Date: 30 Jan 91 18:30:03 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 26 Is a dynamic XView CMS guaranteed to contain contiguous *real* indices into the colormap? That is, given the following code fragment: cms = (Cms) xv_create (NULL, CMS, CMS_TYPE, XV_DYNAMIC_CMS, CMS_SIZE, size, NULL); pixels = (unsigned long *) xv_get (cms, CMS_INDEX_TABLE); Will it hold that for size > 1, and for all read/write displays of appropriate depth (esp. 8-bit PseudoColor), pixels[0] = i, pixels[1] = i + 1, ... , pixels[size - 1] = i + size - 1 ? This is the behavior I've noted thus far (in my limited environment), but I was unable to find any definitive statement about this in the XView documentation (O'Reilly Volume 7). I'm using XView 2.0 on a SPARCstation 1. -- Doug Becker doug@nmri.ge.com crdgw1.ge.com!sane!doug