| 61 | } |
| 62 | |
| 63 | inline std::string GetDXErrorStringAnsi(HRESULT hr) |
| 64 | { |
| 65 | std::wstring errorString = GetDXErrorString(hr); |
| 66 | |
| 67 | std::string message; |
| 68 | for(uint64 i = 0; i < errorString.length(); ++i) |
| 69 | message.append(1, static_cast<char>(errorString[i])); |
| 70 | return message; |
| 71 | } |
| 72 | |
| 73 | inline std::wstring GetGdiPlusErrorString(Gdiplus::Status status) |
| 74 | { |
nothing calls this directly
no test coverage detected