diff options
-rw-r--r-- | src/e_mod_rdp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/e_mod_rdp.c b/src/e_mod_rdp.c index e477be9..051be70 100644 --- a/src/e_mod_rdp.c +++ b/src/e_mod_rdp.c @@ -54,6 +54,7 @@ typedef struct _E_Rdp_Peer_Item E_Rdp_Peer_Item; typedef struct _E_Rdp_Peer_Context E_Rdp_Peer_Context; static E_Rdp_Backend *g_rdp_backend; +static unsigned int refresh_raw_frame_id; struct _E_Rdp_Config { @@ -301,7 +302,11 @@ e_rdp_peer_refresh_raw(pixman_region32_t *region, pixman_image_t *image, freerdp if (!nrects) return; - marker.frameId++; + if (refresh_raw_frame_id == 1024) + refresh_raw_frame_id = 0; + refresh_raw_frame_id++; + + marker.frameId = refresh_raw_frame_id; marker.frameAction = SURFACECMD_FRAMEACTION_BEGIN; update->SurfaceFrameMarker(peer->context, &marker); |