2 * $Source: s:/prj/tech/libsrc/dev2d/RCS/fl8mx.c $
5 * $Date: 1996/04/10 15:34:58 $
7 * Routines for drawing flat8 bitmaps onto a mode X canvas.
9 * This file is part of the dev2d library.
16 void flat8_modex_trans_ubitmap (grs_bitmap
*bm
, int x
, int y
)
25 wlatch_start(save_wlatch
);
29 if ((h
<=0)||(w
<=0)) return;
30 p
= grd_bm
.bits
+grd_bm
.row
*y
;
32 int z
= i
+ bm
->align
;
35 modex_force_wlatch(1<<(z
&3));
36 for (j
=(w
+3)>>2; j
>0; j
--) {
50 wlatch_restore(save_wlatch
);
53 void flat8_modex_opaque_ubitmap (grs_bitmap
*bm
, int x
, int y
)
62 wlatch_start(save_wlatch
);
66 if ((h
<=0)||(w
<=0)) return;
67 p
= grd_bm
.bits
+grd_bm
.row
*y
;
69 int z
= i
+ bm
->align
;
72 modex_force_wlatch(1<<(z
&3));
73 for (j
=(w
+3)>>2; j
>0; j
--) {
87 wlatch_restore(save_wlatch
);