#include "mfb.h"
#include "mfbP.h"
#include <dos.h>
Go to the source code of this file.
|
#define | ror(x, n) ((x >> n) | (x << (8-n))) |
|
#define ror |
( |
|
x, |
|
|
|
n |
|
) |
| ((x >> n) | (x << (8-n))) |
void MFBBox |
( |
int |
x1, |
|
|
int |
y1, |
|
|
int |
x2, |
|
|
int |
y2 |
|
) |
| |
static void mode_1_box |
( |
| ) |
|
|
static |
static void mode_1_box |
( |
int |
xl, |
|
|
int |
yl, |
|
|
int |
xu, |
|
|
int |
yu |
|
) |
| |
|
static |
Definition at line 35 of file mfbbox.c.
39 int lnum, dx, tx, dy, next, *st =
NULL;
41 unsigned char left, right, cbuf;
42 union {
unsigned short color2;
unsigned char c[2]; }
c;
61 left = (0xff >> (xl & 7));
62 right = ~(0xff >> (xu & 7));
63 dx = (xu >> 3) - (xl >>= 3) - 1;
64 if (dx < 0) { left &= right; dx = 0; right = 0; }
69 outpw(0x3ce,
c.color2 & 0xff00);
94 cbuf = st[lnum++ & 7];
105 *rgen = right & cbuf;
#define MFBSwapInt(f1, f2)
static void mode_2_box |
( |
| ) |
|
|
static |
static void mode_2_box |
( |
int |
xl, |
|
|
int |
yl, |
|
|
int |
xu, |
|
|
int |
yu |
|
) |
| |
|
static |
Definition at line 119 of file mfbbox.c.
123 int lnum, dy, next, *st =
NULL;
124 unsigned short dx, tx;
125 unsigned char left, right, cbuf;
126 union {
unsigned short o[2];
long l; } p1, p2;
127 union {
unsigned short color2;
unsigned char c[2]; }
c;
150 p1.l = xl + (long) lnum*
pc.
xsize;
160 if ((cbuf & 0xf) != p1.o[1]) {
165 if (p1.o[1] != p2.o[1])
172 if ((
unsigned)rgen & 1) {
178 *(rgen + tx - 1) =
c.c[0];
181 *(
short far *)rgen =
c.color2;
192 if (p1.o[1] != p2.o[1]) {
199 *(rgen + tx - 1) =
c.c[0];
202 *(
short far *)rgen =
c.color2;
222 left = 0x80 >> (xl & 7);
223 right = st[lnum++ & 7];
225 if ((cbuf & 0xf) != p1.o[1]) {
230 if (p1.o[1] != p2.o[1])
246 if (p1.o[1] != p2.o[1]) {
while(TDesc->tSucc!=NULL)
#define MFBSwapInt(f1, f2)