diff options
Diffstat (limited to 'apps/plugins/rockpaint.c')
-rw-r--r-- | apps/plugins/rockpaint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c index c1b3862ee2..73927ed83d 100644 --- a/apps/plugins/rockpaint.c +++ b/apps/plugins/rockpaint.c | |||
@@ -827,7 +827,7 @@ static bool browse_fonts( char *dst, int dst_size ) | |||
827 | #define fontname_buf buffer.text.fontname_buf | 827 | #define fontname_buf buffer.text.fontname_buf |
828 | 828 | ||
829 | rb->snprintf( old_font, MAX_PATH, | 829 | rb->snprintf( old_font, MAX_PATH, |
830 | ROCKBOX_DIR FONT_DIR "/%s.fnt", | 830 | FONT_DIR "/%s.fnt", |
831 | rb->global_settings->font_file ); | 831 | rb->global_settings->font_file ); |
832 | 832 | ||
833 | while( 1 ) | 833 | while( 1 ) |
@@ -850,7 +850,7 @@ static bool browse_fonts( char *dst, int dst_size ) | |||
850 | { | 850 | { |
851 | b_need_redraw = 0; | 851 | b_need_redraw = 0; |
852 | 852 | ||
853 | d = rb->PREFIX(opendir)( ROCKBOX_DIR FONT_DIR "/" ); | 853 | d = rb->PREFIX(opendir)( FONT_DIR "/" ); |
854 | if( !d ) | 854 | if( !d ) |
855 | { | 855 | { |
856 | return false; | 856 | return false; |
@@ -880,7 +880,7 @@ static bool browse_fonts( char *dst, int dst_size ) | |||
880 | || rb->strcmp( de->d_name + rb->strlen( de->d_name ) - 4, | 880 | || rb->strcmp( de->d_name + rb->strlen( de->d_name ) - 4, |
881 | ".fnt" ) ) | 881 | ".fnt" ) ) |
882 | continue; | 882 | continue; |
883 | rb->snprintf( bbuf, MAX_PATH, ROCKBOX_DIR FONT_DIR "/%s", | 883 | rb->snprintf( bbuf, MAX_PATH, FONT_DIR "/%s", |
884 | de->d_name ); | 884 | de->d_name ); |
885 | rb->font_load( bbuf ); | 885 | rb->font_load( bbuf ); |
886 | rb->font_getstringsize( de->d_name, &fw, &fh, FONT_UI ); | 886 | rb->font_getstringsize( de->d_name, &fw, &fh, FONT_UI ); |
@@ -915,7 +915,7 @@ static bool browse_fonts( char *dst, int dst_size ) | |||
915 | && !rb->strcmp( de->d_name + rb->strlen( de->d_name ) - 4, | 915 | && !rb->strcmp( de->d_name + rb->strlen( de->d_name ) - 4, |
916 | ".fnt" ) ) | 916 | ".fnt" ) ) |
917 | { | 917 | { |
918 | rb->snprintf( bbuf, MAX_PATH, ROCKBOX_DIR FONT_DIR "/%s", | 918 | rb->snprintf( bbuf, MAX_PATH, FONT_DIR "/%s", |
919 | de->d_name ); | 919 | de->d_name ); |
920 | rb->font_load( bbuf ); | 920 | rb->font_load( bbuf ); |
921 | rb->font_getstringsize( de->d_name, NULL, &fh, FONT_UI ); | 921 | rb->font_getstringsize( de->d_name, NULL, &fh, FONT_UI ); |
@@ -1463,7 +1463,7 @@ static void draw_text( int x, int y ) | |||
1463 | { | 1463 | { |
1464 | buffer.text.text[0] = '\0'; | 1464 | buffer.text.text[0] = '\0'; |
1465 | rb->snprintf( buffer.text.old_font, MAX_PATH, | 1465 | rb->snprintf( buffer.text.old_font, MAX_PATH, |
1466 | ROCKBOX_DIR FONT_DIR "/%s.fnt", | 1466 | FONT_DIR "/%s.fnt", |
1467 | rb->global_settings->font_file ); | 1467 | rb->global_settings->font_file ); |
1468 | while( 1 ) | 1468 | while( 1 ) |
1469 | { | 1469 | { |