diff options
author | scuri <scuri> | 2009-11-27 22:44:15 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-11-27 22:44:15 +0000 |
commit | d96819756a30e82b52798487343a4fcbdec11a88 (patch) | |
tree | 628d1c0bc03ee7eb443dba2850d34b589f2d32c1 /src/sim/cd_truetype.c | |
parent | c4ca69d3fa84dca98dce71c7a71b61413d6be165 (diff) |
Fixed: polygon filling in the IMAGERGB driver when the segments contain horizontal lines.
Diffstat (limited to 'src/sim/cd_truetype.c')
-rw-r--r-- | src/sim/cd_truetype.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sim/cd_truetype.c b/src/sim/cd_truetype.c index bd06830..e7dad41 100644 --- a/src/sim/cd_truetype.c +++ b/src/sim/cd_truetype.c @@ -142,12 +142,17 @@ static void cdTT_checkversion(cdTT_Text* tt_text) ********************************************/ cdTT_Text* cdTT_create(void) { + static int first = 1; cdTT_Text * tt_text = malloc(sizeof(cdTT_Text)); memset(tt_text, 0, sizeof(cdTT_Text)); FT_Init_FreeType(&tt_text->library); - cdTT_checkversion(tt_text); + if (first) + { + cdTT_checkversion(tt_text); + first = 0; + } return tt_text; } |