mirror of https://github.com/FreeRDP/FreeRDP
Formatted patch.
This commit is contained in:
parent
7ecce5acbe
commit
9ef1e81c55
|
@ -236,7 +236,7 @@ BOOL wlf_handle_touch_up(freerdp* instance, const UwacTouchUp* ev)
|
|||
if (!wlf_scale_coordinates(instance->context, &x, &y, TRUE))
|
||||
return FALSE;
|
||||
|
||||
RdpeiClientContext* rdpei = ((wlfContext*) instance->context)->rdpei;
|
||||
RdpeiClientContext* rdpei = ((wlfContext*)instance->context)->rdpei;
|
||||
|
||||
if (contacts[i].emulate_mouse == TRUE)
|
||||
{
|
||||
|
@ -290,7 +290,7 @@ BOOL wlf_handle_touch_down(freerdp* instance, const UwacTouchDown* ev)
|
|||
return FALSE;
|
||||
|
||||
context = (wlfContext*)instance->context;
|
||||
RdpeiClientContext* rdpei = ((wlfContext*) instance->context)->rdpei;
|
||||
RdpeiClientContext* rdpei = ((wlfContext*)instance->context)->rdpei;
|
||||
|
||||
// Emulate mouse click if touch is not possible, like in login screen
|
||||
if (!rdpei)
|
||||
|
@ -330,7 +330,7 @@ BOOL wlf_handle_touch_motion(freerdp* instance, const UwacTouchMotion* ev)
|
|||
{
|
||||
if (contacts[i].id == touchId)
|
||||
{
|
||||
if(contacts[i].pos_x == x && contacts[i].pos_y == y)
|
||||
if (contacts[i].pos_x == x && contacts[i].pos_y == y)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ BOOL wlf_handle_touch_motion(freerdp* instance, const UwacTouchMotion* ev)
|
|||
if (!wlf_scale_coordinates(instance->context, &x, &y, TRUE))
|
||||
return FALSE;
|
||||
|
||||
RdpeiClientContext* rdpei = ((wlfContext*) instance->context)->rdpei;
|
||||
RdpeiClientContext* rdpei = ((wlfContext*)instance->context)->rdpei;
|
||||
|
||||
if (contacts[i].emulate_mouse == TRUE)
|
||||
{
|
||||
|
|
|
@ -353,19 +353,19 @@ static BOOL handle_uwac_events(freerdp* instance, UwacDisplay* display)
|
|||
break;
|
||||
|
||||
case UWAC_EVENT_TOUCH_UP:
|
||||
if(!wlf_handle_touch_up(instance, &event.touchUp))
|
||||
if (!wlf_handle_touch_up(instance, &event.touchUp))
|
||||
return FALSE;
|
||||
|
||||
break;
|
||||
|
||||
case UWAC_EVENT_TOUCH_DOWN:
|
||||
if(!wlf_handle_touch_down(instance, &event.touchDown))
|
||||
if (!wlf_handle_touch_down(instance, &event.touchDown))
|
||||
return FALSE;
|
||||
|
||||
break;
|
||||
|
||||
case UWAC_EVENT_TOUCH_MOTION:
|
||||
if(!wlf_handle_touch_motion(instance, &event.touchMotion))
|
||||
if (!wlf_handle_touch_motion(instance, &event.touchMotion))
|
||||
return FALSE;
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue