| 1109 | } |
| 1110 | |
| 1111 | BOOL CBackendFreeRDP::CreateImage(rdpContext *context) |
| 1112 | { |
| 1113 | Q_ASSERT(context); |
| 1114 | ClientContext* pContext = (ClientContext*)context; |
| 1115 | CBackendFreeRDP* pThis = pContext->pThis; |
| 1116 | rdpGdi* gdi = context->gdi; |
| 1117 | Q_ASSERT(pThis && gdi); |
| 1118 | pThis->m_Image = QImage(gdi->primary_buffer, |
| 1119 | static_cast<int>(gdi->width), |
| 1120 | static_cast<int>(gdi->height), |
| 1121 | QImage::Format_ARGB32); |
| 1122 | return TRUE; |
| 1123 | } |
| 1124 | |
| 1125 | #if FREERDP_VERSION_MAJOR >= 3 |
| 1126 | #ifdef Q_OS_WINDOWS |
no outgoing calls
no test coverage detected