libfreerdp-core/fastpath: call BeginPaint/EndPaint.

This commit is contained in:
Vic Lee 2011-08-10 23:55:47 +08:00
parent 65be09ce8a
commit 572f2f45c6
2 changed files with 9 additions and 1 deletions

View File

@ -243,10 +243,16 @@ static void fastpath_recv_update_data(rdpFastPath* fastpath, STREAM* s)
void fastpath_recv_updates(rdpFastPath* fastpath, STREAM* s)
{
rdpUpdate* update = fastpath->rdp->update;
IFCALL(update->BeginPaint, update);
while (stream_get_left(s) > 3)
{
fastpath_recv_update_data(fastpath, s);
}
IFCALL(update->EndPaint, update);
}
rdpFastPath* fastpath_new(rdpRdp* rdp)

View File

@ -705,7 +705,7 @@ void gdi_surface_bits(rdpUpdate* update, SURFACE_BITS_COMMAND* surface_bits_comm
int i, j;
int tx, ty;
DEBUG_GDI("gdi_surface_bits: destLeft %d destTop %d destRight %d destBottom %d "
DEBUG_GDI("destLeft %d destTop %d destRight %d destBottom %d "
"bpp %d codecID %d width %d height %d length %d",
surface_bits_command->destLeft, surface_bits_command->destTop,
surface_bits_command->destRight, surface_bits_command->destBottom,
@ -720,6 +720,8 @@ void gdi_surface_bits(rdpUpdate* update, SURFACE_BITS_COMMAND* surface_bits_comm
message = rfx_process_message(context, s);
DEBUG_GDI("num_rects %d num_tiles %d", message->num_rects, message->num_tiles);
if (message->num_rects > 1) /* RDVH */
{
/* blit each tile */