From aca13e5eac36cd86c53799ac1ca00c884dcd090e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Moreau?= Date: Wed, 26 Jun 2013 19:05:44 -0400 Subject: [PATCH] freerdp: add new events for scaling and panning changes --- include/freerdp/event.h | 9 +++++++++ libfreerdp/core/freerdp.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/include/freerdp/event.h b/include/freerdp/event.h index 7753e133d..a41fe0a60 100644 --- a/include/freerdp/event.h +++ b/include/freerdp/event.h @@ -47,6 +47,15 @@ DEFINE_EVENT_BEGIN(EmbedWindow) void* handle; DEFINE_EVENT_END(EmbedWindow) +DEFINE_EVENT_BEGIN(PanningChange) + int XPan; + int YPan; +DEFINE_EVENT_END(PanningChange) + +DEFINE_EVENT_BEGIN(ScalingFactorChange) + double ScalingFactor; +DEFINE_EVENT_END(ScalingFactorChange) + DEFINE_EVENT_BEGIN(ErrorInfo) UINT32 code; DEFINE_EVENT_END(ErrorInfo) diff --git a/libfreerdp/core/freerdp.c b/libfreerdp/core/freerdp.c index 3c77b8e05..7d0c3c0ba 100644 --- a/libfreerdp/core/freerdp.c +++ b/libfreerdp/core/freerdp.c @@ -323,6 +323,8 @@ static wEventType FreeRDP_Events[] = DEFINE_EVENT_ENTRY(WindowStateChange) DEFINE_EVENT_ENTRY(ResizeWindow) DEFINE_EVENT_ENTRY(EmbedWindow) + DEFINE_EVENT_ENTRY(PanningChange) + DEFINE_EVENT_ENTRY(ScalingFactorChange) DEFINE_EVENT_ENTRY(ErrorInfo) DEFINE_EVENT_ENTRY(ParamChange) DEFINE_EVENT_ENTRY(Terminate)