Searched refs:hr (Results 1 – 1 of 1) sorted by relevance
58 HRESULT hr = S_OK; in DrawBitmap() local62 hr = m_pBitmap->CopyFromMemory(nullptr, (BYTE *)g_pImg, 4 * g_sizex); in DrawBitmap()63 DisplayError("DrawBitmap error", hr); in DrawBitmap()129 HRESULT hr = S_OK; in init_window() local131 hr = D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &m_pD2DFactory); in init_window()133 if (SUCCEEDED(hr) && !m_pRenderTarget) { in init_window()139 hr = m_pD2DFactory->CreateHwndRenderTarget( in init_window()143 if (SUCCEEDED(hr) && !m_pBitmap) { in init_window()