diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-08-29 21:08:38 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-08-29 21:08:38 +0000 |
commit | 5d22e3cbdd251819a4d2d07b9a12994d5aef778d (patch) | |
tree | 4c6a81187ccf065a5f296a903b9f7da88503e403 /firmware/font.c | |
parent | cc31b1fbdae455f975b69dd6bffc23d8bd021566 (diff) | |
download | rockbox-5d22e3cbdd251819a4d2d07b9a12994d5aef778d.tar.gz rockbox-5d22e3cbdd251819a4d2d07b9a12994d5aef778d.zip |
Add wpseditor, the Google Summer of Code 2008 project of Rostislav Chekan. Closes FS#9327
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18362 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/font.c')
-rw-r--r-- | firmware/font.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/font.c b/firmware/font.c index 03e18919da..465cec269a 100644 --- a/firmware/font.c +++ b/firmware/font.c | |||
@@ -522,9 +522,11 @@ void glyph_cache_save(void) | |||
522 | { | 522 | { |
523 | 523 | ||
524 | if (fnt_file >= 0) { | 524 | if (fnt_file >= 0) { |
525 | 525 | #ifdef WPSEDITOR | |
526 | glyph_file = open(GLYPH_CACHE_FILE, O_WRONLY|O_CREAT|O_TRUNC); | ||
527 | #else | ||
526 | glyph_file = creat(GLYPH_CACHE_FILE); | 528 | glyph_file = creat(GLYPH_CACHE_FILE); |
527 | 529 | #endif | |
528 | if (glyph_file < 0) return; | 530 | if (glyph_file < 0) return; |
529 | 531 | ||
530 | lru_traverse(&font_cache_ui._lru, glyph_file_write); | 532 | lru_traverse(&font_cache_ui._lru, glyph_file_write); |