diff options
author | Keith Packard <keithp@keithp.com> | 2004-09-30 17:23:07 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2004-09-30 17:23:07 +0000 |
commit | 531d39cc7ae4333856661395b0d62f8f7b62c003 (patch) | |
tree | 16c51f9a3cbe10448076b9491a807c08b4efb0a1 /twinint.h | |
parent | c3b1b799fe346ef7211ba614bf6c44396e411590 (diff) |
Handle unhinted text.
Add helper functions
Lock pixmaps during drawing
Disable screen updates while applications are busy
Add threads to manage events and redisplay
Paint a clock
Diffstat (limited to 'twinint.h')
-rw-r--r-- | twinint.h | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -57,6 +57,8 @@ typedef int32_t twin_dfixed_t; /* 24.8 format (12.4 * 12.4) */ #define TWIN_SFIXED_ONE (0x10) #define TWIN_SFIXED_HALF (0x08) #define TWIN_SFIXED_TOLERANCE (TWIN_SFIXED_ONE >> 2) +#define TWIN_SFIXED_MIN (-0x7fff) +#define TWIN_SFIXED_MAX (0x7fff) /* * Glyph coordinates are stored in 2.6 fixed point @@ -285,27 +287,6 @@ _twin_distance_to_line_squared (twin_spoint_t *p, twin_spoint_t *p1, twin_spoint * Polygon stuff */ -typedef struct _twin_edge { - struct _twin_edge *next; - twin_sfixed_t top, bot; - twin_sfixed_t x; - twin_sfixed_t e; - twin_sfixed_t dx, dy; - twin_sfixed_t inc_x; - twin_sfixed_t step_x; - int winding; -} twin_edge_t; - -/* - * Pixmap must be in a8 format. - */ - -int -_twin_edge_build (twin_spoint_t *vertices, int nvertices, twin_edge_t *edges); - -void -_twin_edge_fill (twin_pixmap_t *pixmap, twin_edge_t *edges, int nedges); - /* * Fixed point helper functions */ |