Suppress error messages when checking for Direct2D availability.

Use wxDL_QUIET flag when loading Direct2D DLLs as we're prepared to handle
their absence and don't need to show error messages if they're not available.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-09-11 20:33:24 +00:00
parent 9ecf317092
commit 7dec99c0a8

View File

@ -128,8 +128,8 @@ public:
private:
static bool LoadLibraries()
{
m_dllDirect2d.Load(wxT("d2d1.dll"), wxDL_VERBATIM);
m_dllDirectWrite.Load(wxT("dwrite.dll"), wxDL_VERBATIM);
m_dllDirect2d.Load(wxT("d2d1.dll"), wxDL_VERBATIM | wxDL_QUIET);
m_dllDirectWrite.Load(wxT("dwrite.dll"), wxDL_VERBATIM | wxDL_QUIET);
bool hasDirect2dSupport = m_dllDirect2d.IsLoaded() && m_dllDirectWrite.IsLoaded();