VIOCOLORREG: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
VIO colour register | VIO colour register | ||
Line 14: | Line 13: | ||
=== Fields === | === Fields === | ||
;cb:Length of the structure in bytes, including length. The maximum valid value is 12. | ;cb:Length of the structure in bytes, including length. The maximum valid value is 12. | ||
;type:Request type = 3, get | ;type:Request type = 3, get colour registers. | ||
:Request type 3 for | :Request type 3 for colour registers. | ||
;firstcolorreg:First | ;firstcolorreg:First colour register. | ||
:The first | :The first colour register to get in the colour register sequence. It must be specified in the range 0 through 255. The colour registers are returned in sequential order. | ||
;numcolorregs:Number of | ;numcolorregs:Number of colour registers to get. | ||
:The number of | :The number of colour registers to get; must be specified in the range 1 through 256. | ||
;colorregaddr:Area where the | ;colorregaddr:Area where the colour registers are returned. | ||
:The far address of a data area where the | :The far address of a data area where the colour registers are returned. The size of the data area must be three bytes times the number of colour registers to get. The format of each entry returned is as follows: | ||
::Byte 1 Red value | ::Byte 1 Red value | ||
::Byte 2 Green value | ::Byte 2 Green value |
Latest revision as of 14:22, 24 May 2017
VIO colour register
Type
USHORT cb USHORT type USHORT firstcolorreg USHORT numcolorregs PCH colorregaddr
C Declaration Method
typedef struct
Fields
- cb
- Length of the structure in bytes, including length. The maximum valid value is 12.
- type
- Request type = 3, get colour registers.
- Request type 3 for colour registers.
- firstcolorreg
- First colour register.
- The first colour register to get in the colour register sequence. It must be specified in the range 0 through 255. The colour registers are returned in sequential order.
- numcolorregs
- Number of colour registers to get.
- The number of colour registers to get; must be specified in the range 1 through 256.
- colorregaddr
- Area where the colour registers are returned.
- The far address of a data area where the colour registers are returned. The size of the data area must be three bytes times the number of colour registers to get. The format of each entry returned is as follows:
- Byte 1 Red value
- Byte 2 Green value
- Byte 3 Blue value