1 /*-----------------------------------------------------------------------
\r
7 ; ****** XLIB - Mode X graphics library ****************
\r
8 ; ****** ****************
\r
9 ; ****** Written By Themie Gouthas ****************
\r
11 ; egg@dstos3.dsto.gov.au
\r
12 ; teg@bart.dsto.gov.au
\r
14 ; Terminology & notes:
\r
16 ; SRAM == System RAM
\r
17 ; X coordinates are in pixels unless explicitly stated
\r
19 ;----------------------------------------------------------------------*/
\r
24 #define PAL_ROTATE_DOWN 0
\r
25 #define PAL_ROTATE_UP 1
\r
27 /* FUNCTIONS =========================================================== */
\r
34 void x_get_pal_raw( /* Read DAC palette into raw buffer */
\r
39 void x_get_pal_struc( /* Read DAC palette into annotated buffer */
\r
44 void x_put_pal_raw( /* Write DAC palette from raw buffer */
\r
49 void x_put_pal_struc( /* Write DAC palette from annotated buffer*/
\r
52 x_set_rgb( /* Set the RGB components of a color index*/
\r
58 x_rot_pal_raw( /* Rotate a raw palette buffer */
\r
63 void x_rot_pal_struc( /* Rotate an anottated palette buffer */
\r
67 WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated */
\r
68 BYTE far *src_pal, /* palette buffer */
\r
72 void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
\r
73 BYTE far * pal, /* buffer with a new offset */
\r
76 void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
\r
77 BYTE far * pal, /* type buffer with specified intensity */
\r