|
@@ -214,14 +214,17 @@ |
|
|
&& -f "$dir/$_" # and is a file |
|
|
} readdir(DIR); |
|
|
closedir(DIR); |
|
|
#sort array |
|
|
my @pics_sorted=sort @pics |
|
|
print @pics_sorted; |
|
|
#builtin framebuffer access |
|
|
|
|
|
my $fb = Graphics::Framebuffer->new( FB_DEVICE=>$display_device, SPLASH=>0 ); |
|
|
$fb->clear_screen('OFF'); |
|
|
$fb->blit_write( |
|
|
$fb->load_image( |
|
|
{ 'center' => $fb->{'CENTER_XY'}, |
|
|
'file' => "$dir/$pics[0]" # Usually needs full path |
|
|
'file' => "$dir/$pics_sorted[0]" # Usually needs full path |
|
|
} |
|
|
) |
|
|
); |
|
|
0 comments on commit
48959ea