Steve Cheng <[EMAIL PROTECTED]> writes:

> Could anyone please explain the meaning of

The meaning is not really finally defined, as no target uses these
yet, but these were the ideas behind them. Note that subschemes
are or;ed together, not mutually exclusive as other graphtype
components.

> GT_SUB_REVERSE_ENDIAN

This is only relevant for modes where a bitfield (such as the red,
green or blue component of pixels) crosses a byte-boundary. For
example the green component in common 15 and 16 bit modes does
this. The flag is equivalent to the GGI_PF_REVERSE_ENDIAN flag in
ggi_pixelformat->flags and means that after composing a pixel
according to the masks/shifts in ggi_pixelformat the pixel should
be byteswapped.

> GT_SUB_HIGHBIT_RIGHT

This is the same as the GGI_PF_HIGHBIT_RIGHT flag in
ggi_pixelformat->flags. It is only relevant for modes where more
than one pixel is contained in each byte and means that the high
bit/bits corresponds to the rightmost pixel.

> GT_SUB_PACKED_GETPUT

Normally ggiGet/Put* buffers use ((GT_SIZE(gt)+7)&(~7)) bits per
pixel. This flag requests that they use exactly GT_SIZE(gt) bits
per pixel instead. Thus it's only relevant for modes where the
pixelsize is not a multiple of 8 bits.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 452062
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to