| 1934 | } |
| 1935 | |
| 1936 | BOOL 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 | |
| 1953 | BOOL CBackendFreeRDP::cb_end_paint(rdpContext *context) |
| 1954 | { |
no outgoing calls
no test coverage detected