rbutil: Add nice Buttons (FS 7294, heavily modified). Buttons are from the gnome-icon-theme (GPL) and are in png format. In rbutil/icons there is bin2c.c which can convert those pngs to *.c and *.h. Call it with bin2c *.png (shell expansion). The Makefile (Linux/ Mac) needs updates to use this.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13690 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2007-06-22 23:46:47 +00:00
parent f5936c062f
commit 84f5939d5f
15 changed files with 233 additions and 17 deletions

View file

@ -21,6 +21,12 @@
#include "rbutil.h"
#include "installlog.h"
/* this function gets a Bitmap from embedded memory */
wxBitmap wxGetBitmapFromMemory(const unsigned char *data,int length)
{
wxMemoryInputStream istream( data,length);
return wxBitmap(wxImage(istream, wxBITMAP_TYPE_ANY, -1), -1);
}
// This class allows us to return directories as well as files to
// wxDir::Traverse