MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CreateImage

Method CreateImage

Plugins/FreeRDP/Client/BackendFreeRDP.cpp:1111–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111BOOL 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

Callers 2

cb_post_connectMethod · 0.80
cb_desktop_resizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected