// display functions are found in different DLLs under WinCE and normal Win32
#ifdef __WXWINCE__
-static const wxChar displayDllName[] = _T("coredll.dll");
+static const wxChar displayDllName[] = wxT("coredll.dll");
#else
-static const wxChar displayDllName[] = _T("user32.dll");
+static const wxChar displayDllName[] = wxT("user32.dll");
#endif
// ----------------------------------------------------------------------------
// system option
#if wxUSE_DIRECTDRAW
- if ( wxSystemOptions::GetOptionInt(_T("msw.display.directdraw")) )
+ if ( wxSystemOptions::GetOptionInt(wxT("msw.display.directdraw")) )
{
wxDisplayFactoryDirectDraw *factoryDD = new wxDisplayFactoryDirectDraw;
if ( factoryDD->IsOk() )
WinStruct<MONITORINFOEX> monInfo;
if ( !gs_GetMonitorInfo(m_hmon, (LPMONITORINFO)&monInfo) )
{
- wxLogLastError(_T("GetMonitorInfo"));
+ wxLogLastError(wxT("GetMonitorInfo"));
m_flags = 0;
return;
}
dm.dmDriverExtra = 0;
if ( !::EnumDisplaySettings(deviceName, ENUM_CURRENT_SETTINGS, &dm) )
{
- wxLogLastError(_T("EnumDisplaySettings(ENUM_CURRENT_SETTINGS)"));
+ wxLogLastError(wxT("EnumDisplaySettings(ENUM_CURRENT_SETTINGS)"));
}
else
{
wxDisplayImpl *wxDisplayFactoryMultimon::CreateDisplay(unsigned n)
{
- wxCHECK_MSG( n < m_displays.size(), NULL, _T("invalid display index") );
+ wxCHECK_MSG( n < m_displays.size(), NULL, wxT("invalid display index") );
return new wxDisplayImplMultimon(n, *(m_displays[n]));
}
else // change to the given mode
{
wxCHECK_MSG( mode.GetWidth() && mode.GetHeight(), false,
- _T("at least the width and height must be specified") );
+ wxT("at least the width and height must be specified") );
wxZeroMemory(dm);
dm.dmSize = sizeof(dm);
break;
default:
- wxFAIL_MSG( _T("unexpected ChangeDisplaySettingsEx() return value") );
+ wxFAIL_MSG( wxT("unexpected ChangeDisplaySettingsEx() return value") );
}
return false;
if ( !ms_supportsMultimon )
return;
- m_dllDDraw.Load(_T("ddraw.dll"), wxDL_VERBATIM | wxDL_QUIET);
+ m_dllDDraw.Load(wxT("ddraw.dll"), wxDL_VERBATIM | wxDL_QUIET);
if ( !m_dllDDraw.IsLoaded() )
return;
this,
DDENUM_ATTACHEDSECONDARYDEVICES) != DD_OK )
{
- wxLogLastError(_T("DirectDrawEnumerateEx"));
+ wxLogLastError(wxT("DirectDrawEnumerateEx"));
}
}
wxDisplayImpl *wxDisplayFactoryDirectDraw::CreateDisplay(unsigned n)
{
- wxCHECK_MSG( n < m_displays.size(), NULL, _T("invalid display index") );
+ wxCHECK_MSG( n < m_displays.size(), NULL, wxT("invalid display index") );
wxDisplayInfoDirectDraw *
info = static_cast<wxDisplayInfoDirectDraw *>(m_displays[n]);
if ( FAILED(hr) || !pDD )
{
// what to do??
- wxLogApiError(_T("DirectDrawCreate"), hr);
+ wxLogApiError(wxT("DirectDrawCreate"), hr);
return NULL;
}
if ( FAILED(hr) || !info->m_pDD2 )
{
- wxLogApiError(_T("IDirectDraw::QueryInterface(IDD2)"), hr);
+ wxLogApiError(wxT("IDirectDraw::QueryInterface(IDD2)"), hr);
return NULL;
}
if ( FAILED(hr) )
{
- wxLogApiError(_T("IDirectDraw::EnumDisplayModes"), hr);
+ wxLogApiError(wxT("IDirectDraw::EnumDisplayModes"), hr);
}
return modes;
bool wxDisplayImplDirectDraw::ChangeMode(const wxVideoMode& mode)
{
wxWindow *winTop = wxTheApp->GetTopWindow();
- wxCHECK_MSG( winTop, false, _T("top level window required for DirectX") );
+ wxCHECK_MSG( winTop, false, wxT("top level window required for DirectX") );
HRESULT hr = m_pDD2->SetCooperativeLevel
(
);
if ( FAILED(hr) )
{
- wxLogApiError(_T("IDirectDraw2::SetCooperativeLevel"), hr);
+ wxLogApiError(wxT("IDirectDraw2::SetCooperativeLevel"), hr);
return false;
}
hr = m_pDD2->SetDisplayMode(mode.w, mode.h, mode.bpp, mode.refresh, 0);
if ( FAILED(hr) )
{
- wxLogApiError(_T("IDirectDraw2::SetDisplayMode"), hr);
+ wxLogApiError(wxT("IDirectDraw2::SetDisplayMode"), hr);
return false;
}