summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/rockpaint.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/rockpaint.c b/apps/plugins/rockpaint.c
index 7ca4cb50f8..77259e4fbb 100644
--- a/apps/plugins/rockpaint.c
+++ b/apps/plugins/rockpaint.c
@@ -646,13 +646,14 @@ static bool browse( char *dst, int dst_size, const char *start )
646 d = rb->PREFIX(opendir)( bbuf ); 646 d = rb->PREFIX(opendir)( bbuf );
647 if( !d ) 647 if( !d )
648 { 648 {
649 /*
649 if( errno == ENOTDIR ) 650 if( errno == ENOTDIR )
650 { 651 {*/
651 /* this is a file */ 652 /* this is a file */
652 bbuf[rb->strlen(bbuf)-1] = '\0'; 653 bbuf[rb->strlen(bbuf)-1] = '\0';
653 rb->strncpy( dst, bbuf, dst_size ); 654 rb->strncpy( dst, bbuf, dst_size );
654 return true; 655 return true;
655 } 656 /*}
656 else if( errno == EACCES || errno == ENOENT ) 657 else if( errno == EACCES || errno == ENOENT )
657 { 658 {
658 bbuf[0] = '/'; bbuf[1] = '\0'; 659 bbuf[0] = '/'; bbuf[1] = '\0';
@@ -661,7 +662,7 @@ static bool browse( char *dst, int dst_size, const char *start )
661 else 662 else
662 { 663 {
663 return false; 664 return false;
664 } 665 }*/
665 } 666 }
666 top_inside = draw_window( HEIGHT, WIDTH, &top, &left, bbuf ); 667 top_inside = draw_window( HEIGHT, WIDTH, &top, &left, bbuf );
667 i = 0; 668 i = 0;
@@ -2158,7 +2159,7 @@ static void draw_toolbars(bool update)
2158 2159
2159static void toolbar( void ) 2160static void toolbar( void )
2160{ 2161{
2161 unsigned int button, i, j; 2162 int button, i, j;
2162 restore_screen(); 2163 restore_screen();
2163 draw_toolbars( false ); 2164 draw_toolbars( false );
2164 y = LCD_HEIGHT-TB_HEIGHT/2; 2165 y = LCD_HEIGHT-TB_HEIGHT/2;