2 * $Source: s:/prj/tech/libsrc/dev2d/RCS/f16pix16.c $
5 * $Date: 1996/04/10 15:44:38 $
7 * Routines for drawing pixels into a flat 8 canvas.
9 * This file is part of the dev2d library.
12 * Revision 1.1 1996/04/10 15:44:38 KEVIN
19 /* draws an unclipped pixel of the given color at (x, y) on the canvas. */
20 void flat16_norm_upix16(int c16
, int x
, int y
)
24 p
= (ushort
*)(grd_bm
.bits
+ grd_bm
.row
*y
+ 2*x
);
28 void flat16_clut_upix16 (int c16
, int x
, int y
)
33 p
= (ushort
*)(grd_bm
.bits
+ grd_bm
.row
*y
+ 2*x
);
34 clut16
= (ushort
*)(grd_gc
.fill_parm
);
35 *p
= clut16
[c16
&255] + clut16
[256+(c16
>>8)];
38 void flat16_xor_upix16 (int c16
, int x
, int y
)
42 p
= (ushort
*)(grd_bm
.bits
+ grd_bm
.row
*y
+ 2*x
);
46 void flat16_tluc_upix16 (int c16
, int x
, int y
)
51 p
= (ushort
*)(grd_bm
.bits
+ grd_bm
.row
*y
+ 2*x
);
52 if (((uint
)c16
) <= 255) {
53 clut16
=(ushort
*)(tluc8tab
[c16
]);
56 *p
= clut16
[c16
&255]+clut16
[256+(c16
>>8)];
63 #pragma off (unreferenced)
64 void flat16_solid_upix16 (int c16
, int x
, int y
)
68 p
= (ushort
*)(grd_bm
.bits
+ grd_bm
.row
*y
+ 2*x
);
69 *p
= (ushort
)grd_gc
.fill_parm
;
71 #pragma on (unreferenced)