WM_MOUSEMOVE correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -278,6 +278,10 @@ bool wxBitmap::LoadFile(const wxString& filename, long type)
|
||||
|
||||
wxBitmapHandler *handler = FindHandler(type);
|
||||
|
||||
#if 0
|
||||
if ( handler == NULL )
|
||||
return FALSE;
|
||||
#else
|
||||
if ( handler == NULL ) {
|
||||
wxImage image;
|
||||
if (!image.LoadFile( filename, type )) return FALSE;
|
||||
@@ -288,7 +292,7 @@ bool wxBitmap::LoadFile(const wxString& filename, long type)
|
||||
}
|
||||
else return FALSE;
|
||||
}
|
||||
|
||||
#endif
|
||||
return handler->LoadFile(this, filename, type, -1, -1);
|
||||
}
|
||||
|
||||
@@ -313,11 +317,16 @@ bool wxBitmap::SaveFile(const wxString& filename, int type, const wxPalette *pal
|
||||
{
|
||||
wxBitmapHandler *handler = FindHandler(type);
|
||||
|
||||
#if 0
|
||||
if ( handler == NULL )
|
||||
return FALSE;
|
||||
#else
|
||||
if ( handler == NULL ) { // try wxImage
|
||||
wxImage image( *this );
|
||||
if (image.Ok()) return image.SaveFile( filename, type );
|
||||
else return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
||||
return handler->SaveFile(this, filename, type, palette);
|
||||
}
|
||||
|
Reference in New Issue
Block a user