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 */
|
/* profile is simply an array of scanline intersections on a given */
|
||||||
/* dimension. A profile's main attributes are */
|
/* 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 */
|
/* 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 */
|
/* 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 */
|
/* 2 - Sweeping the target map's scanlines in order to compute segment */
|
||||||
/* `spans' which are then filled. Additionally, this pass */
|
/* `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 */
|
/* built from the bottom of the render pool, used as a stack. The */
|
||||||
/* following graphics shows the profile list under construction: */
|
/* following graphics shows the profile list under construction: */
|
||||||
/* */
|
/* */
|
||||||
/* ____________________________________________________________ _ _ */
|
/* __________________________________________________________ _ _ */
|
||||||
/* | | | | | */
|
/* | | | | | */
|
||||||
/* | profile | coordinates for | profile | coordinates for |--> */
|
/* | profile | coordinates for | profile | coordinates for |--> */
|
||||||
/* | 1 | profile 1 | 2 | profile 2 |--> */
|
/* | 1 | profile 1 | 2 | profile 2 |--> */
|
||||||
/* |_________|___________________|_________|_________________|__ _ _ */
|
/* |_________|_________________|_________|_________________|__ _ _ */
|
||||||
/* */
|
/* */
|
||||||
/* ^ ^ */
|
/* ^ ^ */
|
||||||
/* | | */
|
/* | | */
|
||||||
|
@ -200,7 +202,8 @@
|
||||||
|
|
||||||
#define ft_memset memset
|
#define ft_memset memset
|
||||||
|
|
||||||
#else /* _STANDALONE_ */
|
|
||||||
|
#else /* !_STANDALONE_ */
|
||||||
|
|
||||||
|
|
||||||
#include FT_INTERNAL_OBJECTS_H
|
#include FT_INTERNAL_OBJECTS_H
|
||||||
|
@ -216,7 +219,7 @@
|
||||||
#define Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph
|
#define Raster_Err_Unsupported Raster_Err_Cannot_Render_Glyph
|
||||||
|
|
||||||
|
|
||||||
#endif /* _STANDALONE_ */
|
#endif /* !_STANDALONE_ */
|
||||||
|
|
||||||
|
|
||||||
#ifndef FT_MEM_SET
|
#ifndef FT_MEM_SET
|
||||||
|
@ -374,7 +377,7 @@
|
||||||
#define FT_UNUSED_RASTER do { } while ( 0 )
|
#define FT_UNUSED_RASTER do { } while ( 0 )
|
||||||
|
|
||||||
|
|
||||||
#else /* FT_STATIC_RASTER */
|
#else /* !FT_STATIC_RASTER */
|
||||||
|
|
||||||
|
|
||||||
#define RAS_ARGS PWorker worker,
|
#define RAS_ARGS PWorker worker,
|
||||||
|
@ -386,7 +389,7 @@
|
||||||
#define FT_UNUSED_RASTER FT_UNUSED( worker )
|
#define FT_UNUSED_RASTER FT_UNUSED( worker )
|
||||||
|
|
||||||
|
|
||||||
#endif /* FT_STATIC_RASTER */
|
#endif /* !FT_STATIC_RASTER */
|
||||||
|
|
||||||
|
|
||||||
typedef struct TWorker_ TWorker, *PWorker;
|
typedef struct TWorker_ TWorker, *PWorker;
|
||||||
|
@ -419,10 +422,9 @@
|
||||||
#define IS_BOTTOM_OVERSHOOT( x ) ( CEILING( x ) - x >= ras.precision_half )
|
#define IS_BOTTOM_OVERSHOOT( x ) ( CEILING( x ) - x >= ras.precision_half )
|
||||||
#define IS_TOP_OVERSHOOT( x ) ( x - FLOOR( 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 */
|
/* The most used variables are positioned at the top of the structure. */
|
||||||
/* structure to ensure that the most used variables are used */
|
/* Thus, their offset can be coded with less opcodes, resulting in a */
|
||||||
/* at the top. Thus, their offset can be coded with less */
|
/* smaller executable. */
|
||||||
/* opcodes, and it results in a smaller executable. */
|
|
||||||
|
|
||||||
struct TWorker_
|
struct TWorker_
|
||||||
{
|
{
|
||||||
|
@ -452,7 +454,8 @@
|
||||||
PByte bTarget; /* target bitmap buffer */
|
PByte bTarget; /* target bitmap buffer */
|
||||||
PByte gTarget; /* target pixmap buffer */
|
PByte gTarget; /* target pixmap buffer */
|
||||||
|
|
||||||
Long lastX, lastY, minY, maxY;
|
Long lastX, lastY;
|
||||||
|
Long minY, maxY;
|
||||||
|
|
||||||
UShort num_Profs; /* current number of profiles */
|
UShort num_Profs; /* current number of profiles */
|
||||||
|
|
||||||
|
@ -538,11 +541,11 @@
|
||||||
static TWorker cur_ras;
|
static TWorker cur_ras;
|
||||||
#define ras cur_ras
|
#define ras cur_ras
|
||||||
|
|
||||||
#else
|
#else /* !FT_STATIC_RASTER */
|
||||||
|
|
||||||
#define ras (*worker)
|
#define ras (*worker)
|
||||||
|
|
||||||
#endif /* FT_STATIC_RASTER */
|
#endif /* !FT_STATIC_RASTER */
|
||||||
|
|
||||||
|
|
||||||
#ifdef FT_RASTER_OPTION_ANTI_ALIASING
|
#ifdef FT_RASTER_OPTION_ANTI_ALIASING
|
||||||
|
|
Loading…
Reference in New Issue