| United States-English |
|
|
|
![]() |
HP-UX Starbase Device Drivers Manual - Vol1: HP 9000 Series 700 Computers > Chapter 1 Introduction and Device ComparisonStarbase Color Maps and X11 Read/Write Restrictions |
|
The X color model defines read/write restrictions both on color maps and on individual entries in color maps. As of HP-UX 9.05, Starbase will no longer overwrite read-only color maps or color map entries as defined in the X color model. Starbase will generate a warning message if the application attempts to overwrite read-only color map entries. Attempts to write to color map entries in read-only color maps (color maps in StaticGray, StaticColor or TrueColor visuals) are silently ignored. Note that this color map restriction does not apply to the following device drivers:
Starbase applications that are running in other visuals (GrayScale, PseudoColor or DirectColor) may generate Starbase warning messages and will be unable to change the contents of color map entries that have been allocated as read-only. Most applications will not be affected. Examples of where applications will and will not be affected are given in subsequent sections. For information on various routines found in the sections "Cases Where Applications Are Not Affected" and "Cases Where Applications Are Affected," see the Starbase Reference or the Xlib Reference Manual by O'Reilly &Associates, Incorporated. Information for utility routines not found in the previously listed manuals can be found in this directory[2]:
This section describes situations where applications will not generate Starbase commands that try to overwrite read/write restrictions on color maps or individual entries in color maps.
This section describes situations where applications can generate Starbase commands that try to overwrite read/write restrictions on color maps or individual entries in color maps. An application that did not specify INIT in any gopen() call on a particular window and does not allocate a writable color map for the window may see Starbase warnings if the color map entries have not been otherwise allocated writable. Examples of how this might happen are:
Note that display_enable() calls on devices without display enable hardware will also generate color map change requests. The same is true for double_buffer() and dbuffer_switch() calls where the application is double-buffering with 1, 2, 3 or 4 planes. Just as with define_color_table() calls, the application will generate Starbase warning messages and will fail to change the color map's contents unless the color map has writable color entries. When applications change color map entries using Xlib calls, the results of these Xlib color updates will no longer be visible to Starbase after gopen() is called. In fact, Starbase may at times overwrite color map entries with its own internal version of the color map. Any color map modifications done through Xlib may be lost. Both Starbase calls and Xlib calls will affect the hardware color map, but for example, inquires of Starbase color map contents using the Starbase inquire_color_table() routine will only reflect color changes made through Starbase calls. However, inquiries made through Xlib will see changes made by both Xlib and Starbase. Some minor differences in color map sharing on CRX-48Z may be observed as of HP-UX 9.05. In the past, the CRX-48Z attempted to optimize color map sharing to minimize technicolor effects. These optimizations are no longer used as of HP-UX 9.05. Display enable masks cannot be applied to static color maps. If a color map is created in a static visual (that is, TrueColor, StaticColor, or StaticGray, which are supported by the X server as of HP-UX 9.05), a display enable mask cannot be applied to it using the display_enable() routine. The reason for this is that display_enable() is achieved on devices without display enable hardware by color map changes. Changing the contents of a static color map is not permitted under the X color model. Starbase will silently ignore a display_enable() request when the window has a static color map. Again, this also applies to double_buffer() and dbuffer_switch() calls when the application is attempting to double-buffer with 1, 2, 3, or 4 planes. [2] The actual path names of directories in angle brackets depend on the file system structure. See the Graphics Administration Guide for details. |
||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||