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:
Julian Smart
1999-11-23 10:53:39 +00:00
parent 41404da71e
commit e2b34251cb
6 changed files with 36 additions and 18 deletions

View File

@@ -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);
}