mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
rdpUpdate: add autoCalculateBitmapData flag
This commit is contained in:
parent
4a6b843f16
commit
99b10aa98d
@ -253,6 +253,11 @@ struct rdp_update
|
|||||||
rdpBounds currentBounds;
|
rdpBounds currentBounds;
|
||||||
rdpBounds previousBounds;
|
rdpBounds previousBounds;
|
||||||
CRITICAL_SECTION mux;
|
CRITICAL_SECTION mux;
|
||||||
|
|
||||||
|
/* if autoCalculateBitmapData is set to TRUE, the server automatically
|
||||||
|
* fills BITMAP_DATA struct members: flags, cbCompMainBodySize and cbCompFirstRowSize.
|
||||||
|
*/
|
||||||
|
BOOL autoCalculateBitmapData;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FREERDP_UPDATE_H */
|
#endif /* FREERDP_UPDATE_H */
|
||||||
|
@ -148,6 +148,8 @@ static BOOL update_write_bitmap_data(rdpUpdate* update, wStream* s,
|
|||||||
if (!Stream_EnsureRemainingCapacity(s, 64 + bitmapData->bitmapLength))
|
if (!Stream_EnsureRemainingCapacity(s, 64 + bitmapData->bitmapLength))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (update->autoCalculateBitmapData)
|
||||||
|
{
|
||||||
bitmapData->flags = 0;
|
bitmapData->flags = 0;
|
||||||
bitmapData->cbCompFirstRowSize = 0;
|
bitmapData->cbCompFirstRowSize = 0;
|
||||||
|
|
||||||
@ -159,6 +161,7 @@ static BOOL update_write_bitmap_data(rdpUpdate* update, wStream* s,
|
|||||||
bitmapData->flags |= NO_BITMAP_COMPRESSION_HDR;
|
bitmapData->flags |= NO_BITMAP_COMPRESSION_HDR;
|
||||||
bitmapData->cbCompMainBodySize = bitmapData->bitmapLength;
|
bitmapData->cbCompMainBodySize = bitmapData->bitmapLength;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Stream_Write_UINT16(s, bitmapData->destLeft);
|
Stream_Write_UINT16(s, bitmapData->destLeft);
|
||||||
Stream_Write_UINT16(s, bitmapData->destTop);
|
Stream_Write_UINT16(s, bitmapData->destTop);
|
||||||
@ -2190,6 +2193,7 @@ rdpUpdate* update_new(rdpRdp* rdp)
|
|||||||
deleteList->cIndices = 0;
|
deleteList->cIndices = 0;
|
||||||
update->SuppressOutput = update_send_suppress_output;
|
update->SuppressOutput = update_send_suppress_output;
|
||||||
update->initialState = TRUE;
|
update->initialState = TRUE;
|
||||||
|
update->autoCalculateBitmapData = TRUE;
|
||||||
update->queue = MessageQueue_New(&cb);
|
update->queue = MessageQueue_New(&cb);
|
||||||
|
|
||||||
if (!update->queue)
|
if (!update->queue)
|
||||||
|
Loading…
Reference in New Issue
Block a user