mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-core: use memory instead of stream in surface_bits callback.
This commit is contained in:
parent
708c6096c9
commit
184bfc2482
|
@ -21,7 +21,6 @@
|
|||
#define __UPDATE_API_H
|
||||
|
||||
#include <freerdp/types.h>
|
||||
#include <freerdp/utils/stream.h>
|
||||
|
||||
/* Common */
|
||||
|
||||
|
@ -805,7 +804,7 @@ struct _SURFACE_BITS_COMMAND
|
|||
uint16 width;
|
||||
uint16 height;
|
||||
uint32 bitmapDataLength;
|
||||
STREAM* bitmapData;
|
||||
uint8* bitmapData;
|
||||
};
|
||||
typedef struct _SURFACE_BITS_COMMAND SURFACE_BITS_COMMAND;
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ static int fastpath_recv_update_surfcmd_surface_bits(rdpFastPath* fastpath, STRE
|
|||
stream_read_uint16(s, cmd->height);
|
||||
stream_read_uint32(s, cmd->bitmapDataLength);
|
||||
pos = stream_get_pos(s) + cmd->bitmapDataLength;
|
||||
cmd->bitmapData = s;
|
||||
cmd->bitmapData = stream_get_tail(s);
|
||||
|
||||
IFCALL(update->SurfaceBits, update, cmd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue