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

Method UpdateBuffer

Plugins/FreeRDP/Client/BackendFreeRDP.cpp:1936–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1934}
1935
1936BOOL CBackendFreeRDP::UpdateBuffer(INT32 x, INT32 y, INT32 w, INT32 h)
1937{
1938 if(x > m_Image.width() || y > m_Image.height()) {
1939 qCritical(log) << "The width and height out of range."
1940 << "Image width:" << m_Image.width()
1941 << "Image height:" << m_Image.height()
1942 << "w:" << w << "h:" << h;
1943 return FALSE;
1944 }
1945
1946 QRect rect(x, y, w, h);
1947 QImage img = m_Image.copy(rect);
1948 //qDebug(log) << "Image:" << rect << img.rect() << img;
1949 emit sigUpdateRect(rect, img);
1950 return TRUE;
1951}
1952
1953BOOL CBackendFreeRDP::cb_end_paint(rdpContext *context)
1954{

Callers 2

cb_end_paintMethod · 0.80
cb_desktop_resizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected