wxFileName::SplitPath(savefilename, NULL, NULL, &extension);
bool saved = false;
- if ( extension == _T("bpp") )
+ if ( extension == _T("bmp") )
{
static const int bppvalues[] =
{
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
wxInitAllImageHandlers();
wxFrame *frame = new MyFrame();