📄 fill_5.c
字号:
/*************************************************************************/
/* */
/* Copyright (c) 1997 - 1999 Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* FLLE NAME VERSION */
/* */
/* fill_5.c 1.9 */
/* */
/* COMPONENT */
/* */
/* All */
/* */
/* DESCRIPTION */
/* */
/* This file contains the common variable for fill routines. */
/* */
/* AUTHOR */
/* */
/* Giac Dinh, Accelerated Technology, Inc. */
/* */
/* DATA STRUCTURES */
/* */
/* None */
/* */
/* FUNCTIONS */
/* */
/* None */
/* */
/* DEPENDENCIES */
/* */
/* None */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* */
/*************************************************************************/
#include "meta_wnd.h"
#include "metconst.h" /* MetaWINDOW Constant & Stucture Definitions */
#include "metports.h" /* MetaWINDOW Port & Bitmap Definitions */
#include "metaproc.h"
#include "grafdata.h"
#include "fill_5.h"
int BMHeight ;/* height of bitmap */
int patRep ;/* every-8th-line count for patterns */
int patRepDec ;/* adjust counter for patRep */
pattern *patStart ;/* offset of pattern start */
byte *ptrnData ;/* offset of pattern start */
int patCnt ;/* counts down drawing of pattern bytes */
byte * patPastMax ;/* marks when pattern pointer must wrap */
int GCCurrentResetTable;/* offset of table to look up reg
reset values in when done */
char localRop,pass2,patSetResetEnable,ropIsReplace;
/* local copy of raster op, flag that's 1 when
2nd pass needed, or 0 otherwise (must not
be any other value!), mono pattern set/reset
enable value, 1 if raster op is rep or nrep,
0 if it's any other rop (for FILL9) */
char nonInvertPlanes,invertPlanes,onePassMask,multiExit;
/* if 2-pass, planes to write on first,non-
inverted, pass & second, inverted pass,mask used
only for 1-pass that's0 if pattern can be used
as is,0ffh if pattern must be flipped */
int patBytesToRight;/* # of bytes from pattern starting
point (accounting for start X)
until wrap. 0 means the start byte
is the byte at the right edge of
the pattern */
int patWidthInBytes;/* # of bytes across pattern (pattern
width must equal patWidthInBytes*8,
with no wasted pixels at the left */
int patHeight ;/* # of bytes from pattern top->bottom */
int patLength ;/* # of bytes in pattern */
int tempDstNextRow;/* possibly-modified version of
dstNextRow used by EMSingleColumn
that is correct for 1-column-wide
drawing */
int patPlaneOffset;/* # of bytes from one plane to the
next in current multicolor pattern */
int fullLeftMask,fullRightMask;
/* masks used for combining in FILL3 */
image *savePat; /* pattern image */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -