Jump to content

VIOPALSTATE: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
== VIOPALSTATE ==
== VIOPALSTATE ==
Text mode get palette register.
Text mode get palette register.


=== Type ===
=== Type ===
 
  [[USHORT]]  cb
  [[OS2 API:DataType:USHORT|USHORT]]  cb
  USHORT  type
  [[OS2 API:DataType:USHORT|USHORT]] type
  USHORT  iFirst
  [[OS2 API:DataType:USHORT|USHORT]] iFirst
  USHORT  acolor[1]
  [[OS2 API:DataType:USHORT|USHORT]] acolor[1]


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== 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.


cb        Length of the structure in bytes, including length.
[[Category:Data type]]
          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.
 
 
[[OS2_API | Back to OS/2 API]]
 
 
[[Category:The OS/2 API Project]]

Revision as of 20:14, 28 November 2016

VIOPALSTATE

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.