From c8a09f3f768b04163add55c823deb9ed6c99b31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Wed, 26 Jun 2013 18:57:16 -0400 Subject: [PATCH] xfreerdp: add ParamChange event handler --- client/X11/xf_client.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index 7e958feeb..1bc990262 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -1520,6 +1520,18 @@ void xf_TerminateEventHandler(rdpContext* context, TerminateEventArgs* e) } } +void xf_ParamChangeEventHandler(rdpContext* context, ParamChangeEventArgs* e) +{ + switch (e->id) + { + case FreeRDP_ScalingFactor: + break; + + default: + break; + } +} + /** * Client Interface */ @@ -1643,6 +1655,7 @@ int xfreerdp_client_new(freerdp* instance, rdpContext* context) settings->OrderSupport[NEG_ELLIPSE_CB_INDEX] = FALSE; PubSub_SubscribeTerminate(context->pubSub, (pTerminateEventHandler) xf_TerminateEventHandler); + PubSub_SubscribeParamChange(context->pubSub, (pParamChangeEventHandler) xf_ParamChangeEventHandler); return 0; }