2 * $Source: s:/prj/tech/libsrc/dev2d/RCS/bk8pix8.c $
5 * $Date: 1996/04/10 15:51:47 $
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:51:47 KEVIN
19 /* draws an unclipped pixel of the given color at (x, y) on the canvas. */
20 void bank8_norm_upix8(int color
, int x
, int y
)
23 int save_bank
=gdd_bank
;
25 p
= ((long )grd_bm
.bits
) + grd_bm
.row
*y
+ x
;
29 gd_restore_bank(save_bank
);
32 void bank8_clut_upix8 (int color
, int x
, int y
)
35 int save_bank
=gdd_bank
;
37 p
= ((long )grd_bm
.bits
) + grd_bm
.row
*y
+ x
;
40 ((uchar
*)grd_gc
.fill_parm
)[color
];
41 gd_restore_bank(save_bank
);
44 void bank8_xor_upix8 (int color
, int x
, int y
)
48 int save_bank
=gdd_bank
;
50 p
= ((long )grd_bm
.bits
) + grd_bm
.row
*y
+ x
;
52 bank_p
= gd_bank_p(p
);
53 *bank_p
= color
^ *bank_p
;
54 gd_restore_bank(save_bank
);
57 void bank8_tluc_upix8 (int color
, int x
, int y
)
59 uchar
*clut
=tluc8tab
[color
];
62 int save_bank
=gdd_bank
;
64 p
= ((long )grd_bm
.bits
) + grd_bm
.row
*y
+ x
;
66 bank_p
= gd_bank_p(p
);
69 *bank_p
= clut
[*bank_p
];
73 gd_restore_bank(save_bank
);
76 #pragma off (unreferenced)
77 void bank8_solid_upix8 (int color
, int x
, int y
)
80 int save_bank
=gdd_bank
;
82 p
= ((long )grd_bm
.bits
) + grd_bm
.row
*y
+ x
;
85 (uchar
)grd_gc
.fill_parm
;
86 gd_restore_bank(save_bank
);
88 #pragma on (unreferenced)