diff options
author | James Bursa <james@netsurf-browser.org> | 2005-02-20 12:24:18 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-02-20 12:24:18 +0000 |
commit | c9b0e66246b905805a9e5d025771587a0e4f9a75 (patch) | |
tree | 7a4a55fcb9db9e1a83389b162074f7ade85d8252 /rufl_paint.c | |
parent | afb3ee60c93f3d6ea31839bc379f284a40c09e5f (diff) | |
download | librufl-c9b0e66246b905805a9e5d025771587a0e4f9a75.tar.gz librufl-c9b0e66246b905805a9e5d025771587a0e4f9a75.tar.bz2 |
[project @ 2005-02-20 12:24:18 by bursa]
Implement rufl_invalidate_cache().
svn path=/import/rufl/; revision=2449
Diffstat (limited to 'rufl_paint.c')
-rw-r--r-- | rufl_paint.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rufl_paint.c b/rufl_paint.c index de20ca0..af771bb 100644 --- a/rufl_paint.c +++ b/rufl_paint.c @@ -277,10 +277,8 @@ rufl_code rufl_process_span(rufl_action action, font_GIVEN_LENGTH | font_GIVEN_FONT | font_KERN | font_GIVEN16_BIT, *x, y, 0, trfm, n * 2); - if (rufl_fm_error) { - xfont_lose_font(f); + if (rufl_fm_error) return rufl_FONT_MANAGER_ERROR; - } } /* increment x by width of span */ @@ -302,10 +300,8 @@ rufl_code rufl_process_span(rufl_action action, 0x7fffffff, 0x7fffffff, 0, trfm, n * 2, 0, &x_out, &y_out, 0); } - if (rufl_fm_error) { - xfont_lose_font(f); + if (rufl_fm_error) return rufl_FONT_MANAGER_ERROR; - } *x += x_out / 400; return rufl_OK; |