VIOPALSTATE: Difference between revisions
Appearance
New |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Text mode get palette register. | Text mode get palette register. | ||
== Type == | |||
[[USHORT]] cb | |||
[[ | USHORT type | ||
USHORT iFirst | |||
USHORT acolor[1] | |||
=== C Declaration Method === | |||
typedef struct | typedef struct | ||
== Fields == | |||
;cb:Length of the structure in bytes, including length. | |||
:The only valid value is 6. | |||
;type:Request type | |||
:Request type 0 for palette registers. | |||
;iFirst:First palette register to return. | |||
:The first palette register in the palette register sequence. It must be specified in the range 0 through 15. The palette registers are returned in sequential order. The number returned is based upon length. | |||
;acolor:Color value palette register. | |||
:The color value for each palette register. The maximum number of entries in the color value array is 16. | |||
[[Category:Data type]] | |||
Latest revision as of 02:25, 21 February 2020
Text mode get palette register.
Type
USHORT cb USHORT type USHORT iFirst USHORT acolor[1]
C Declaration Method
typedef struct
Fields
- cb
- Length of the structure in bytes, including length.
- The only valid value is 6.
- type
- Request type
- Request type 0 for palette registers.
- iFirst
- First palette register to return.
- The first palette register in the palette register sequence. It must be specified in the range 0 through 15. The palette registers are returned in sequential order. The number returned is based upon length.
- acolor
- Color value palette register.
- The color value for each palette register. The maximum number of entries in the color value array is 16.