Whitespace & documentation improvements.
This commit is contained in:
parent
7227114043
commit
8262213192
|
@ -73,13 +73,15 @@
|
|||
/* profile is simply an array of scanline intersections on a given */
|
||||
/* dimension. A profile's main attributes are */
|
||||
/* */
|
||||
/* o its scanline position boundaries, i.e. `Ymin' and `Ymax'. */
|
||||
/* o its scanline position boundaries, i.e. `Ymin' and `Ymax' */
|
||||
/* */
|
||||
/* o an array of intersection coordinates for each scanline */
|
||||
/* between `Ymin' and `Ymax'. */
|
||||
/* between `Ymin' and `Ymax' */
|
||||
/* */
|
||||
/* o a direction, indicating whether it was built going `up' or */
|
||||
/* `down', as this is very important for filling rules. */
|
||||
/* `down', as this is very important for filling rules */
|
||||
/* */
|
||||
/* o its drop-out mode */
|
||||
/* */
|
||||
/* 2 - Sweeping the target map's scanlines in order to compute segment */
|
||||
/* `spans' which are then filled. Additionally, this pass */
|
||||
|
@ -89,11 +91,11 @@
|
|||
/* built from the bottom of the render pool, used as a stack. The */
|
||||
/* following graphics shows the profile list under construction: */
|
||||
/* */
|
||||
/* ____________________________________________________________ _ _ */
|
||||
/* __________________________________________________________ _ _ */
|
||||
/* | | | | | */
|
||||
/* | profile | coordinates for | profile | coordinates for |--> */
|
||||
/* | 1 | profile 1 | 2 | profile 2 |--> */
|
||||
/* |_________|___________________|_________|_________________|__ _ _ */
|
||||
/* |_________|_________________|_________|_________________|__ _ _ */
|
||||
/* */
|
||||
/* ^ ^ */
|
||||
/* | | */
|
||||
|
@ -200,7 +202,8 @@
|
|||
|
||||
#define ft_memset memset
|
||||
|
||||
#else /* _STANDALONE_ */
|
||||
|
||||
#else /* !_STANDALONE_ */
|
||||
|
||||
|
||||
#include FT_INTERNAL_OBJECTS_H
|
||||
|
@ -216,7 +219,7 @@
|
|||
#define Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph
|
||||
|
||||
|
||||
#endif /* _STANDALONE_ */
|
||||
#endif /* !_STANDALONE_ */
|
||||
|
||||
|
||||
#ifndef FT_MEM_SET
|
||||
|
@ -374,7 +377,7 @@
|
|||
#define FT_UNUSED_RASTER do { } while ( 0 )
|
||||
|
||||
|
||||
#else /* FT_STATIC_RASTER */
|
||||
#else /* !FT_STATIC_RASTER */
|
||||
|
||||
|
||||
#define RAS_ARGS PWorker worker,
|
||||
|
@ -386,7 +389,7 @@
|
|||
#define FT_UNUSED_RASTER FT_UNUSED( worker )
|
||||
|
||||
|
||||
#endif /* FT_STATIC_RASTER */
|
||||
#endif /* !FT_STATIC_RASTER */
|
||||
|
||||
|
||||
typedef struct TWorker_ TWorker, *PWorker;
|
||||
|
@ -419,10 +422,9 @@
|
|||
#define IS_BOTTOM_OVERSHOOT( x ) ( CEILING( x ) - x >= ras.precision_half )
|
||||
#define IS_TOP_OVERSHOOT( x ) ( x - FLOOR( x ) >= ras.precision_half )
|
||||
|
||||
/* Note that I have moved the location of some fields in the */
|
||||
/* structure to ensure that the most used variables are used */
|
||||
/* at the top. Thus, their offset can be coded with less */
|
||||
/* opcodes, and it results in a smaller executable. */
|
||||
/* The most used variables are positioned at the top of the structure. */
|
||||
/* Thus, their offset can be coded with less opcodes, resulting in a */
|
||||
/* smaller executable. */
|
||||
|
||||
struct TWorker_
|
||||
{
|
||||
|
@ -452,7 +454,8 @@
|
|||
PByte bTarget; /* target bitmap buffer */
|
||||
PByte gTarget; /* target pixmap buffer */
|
||||
|
||||
Long lastX, lastY, minY, maxY;
|
||||
Long lastX, lastY;
|
||||
Long minY, maxY;
|
||||
|
||||
UShort num_Profs; /* current number of profiles */
|
||||
|
||||
|
@ -538,11 +541,11 @@
|
|||
static TWorker cur_ras;
|
||||
#define ras cur_ras
|
||||
|
||||
#else
|
||||
#else /* !FT_STATIC_RASTER */
|
||||
|
||||
#define ras (*worker)
|
||||
|
||||
#endif /* FT_STATIC_RASTER */
|
||||
#endif /* !FT_STATIC_RASTER */
|
||||
|
||||
|
||||
#ifdef FT_RASTER_OPTION_ANTI_ALIASING
|
||||
|
|
Loading…
Reference in New Issue