Make DolphinWX/ mostly IWYU clean.

This commit is contained in:
Pierre Bourdon
2014-02-22 23:36:30 +01:00
parent c698c07755
commit f344a43657
92 changed files with 1511 additions and 344 deletions

View File

@ -2,10 +2,15 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
#include <string>
#include <wx/bitmap.h>
#include <wx/chartype.h>
#include <wx/gdicmn.h>
#include <wx/image.h>
#include <wx/mstream.h>
#include <wx/string.h>
#include <wx/wx.h>
#include <wx/utils.h>
#include "Common/Common.h"
#include "DolphinWX/WxUtils.h"
#ifdef __APPLE__
@ -57,6 +62,12 @@ double GetCurrentBitmapLogicalScale()
return 1.0;
}
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length)
{
wxMemoryInputStream is(data, length);
return(wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1));
}
} // namespace
std::string WxStrToStr(const wxString& str)